Marketplace móvil para negocios locales mexicanos. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React Web) - apps/mobile (Expo/React Native) - apps/mcp-server (Claude MCP Server) - apps/whatsapp-service (WhatsApp Business API) - database/ (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
483 B
JavaScript
22 lines
483 B
JavaScript
'use strict';
|
|
|
|
var test = require('tape');
|
|
var parse = require('../').parse;
|
|
|
|
function getEnv() {
|
|
return 'xxx';
|
|
}
|
|
|
|
function getEnvObj() {
|
|
return { op: '@@' };
|
|
}
|
|
|
|
test('functional env expansion', function (t) {
|
|
t.plan(4);
|
|
|
|
t.same(parse('a $XYZ c', getEnv), ['a', 'xxx', 'c']);
|
|
t.same(parse('a $XYZ c', getEnvObj), ['a', { op: '@@' }, 'c']);
|
|
t.same(parse('a${XYZ}c', getEnvObj), ['a', { op: '@@' }, 'c']);
|
|
t.same(parse('"a $XYZ c"', getEnvObj), ['a ', { op: '@@' }, ' c']);
|
|
});
|