[Pkg-javascript-commits] [node-shell-quote] 70/137: env() objects even work inside quote strings

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:40 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-shell-quote.

commit 16139f52bf7a2beb7e1ca9b61b93a9ea598b0f1a
Author: James Halliday <mail at substack.net>
Date:   Mon May 13 06:39:17 2013 -0700

    env() objects even work inside quote strings
---
 test/env_fn.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/env_fn.js b/test/env_fn.js
index 04c962c..b9f3c20 100644
--- a/test/env_fn.js
+++ b/test/env_fn.js
@@ -2,11 +2,12 @@ var test = require('tape');
 var parse = require('../').parse;
 
 test('functional env expansion', function (t) {
-    t.plan(3);
+    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' ]);
     
     function getEnv (key) {
         return 'xxx';

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-shell-quote.git



More information about the Pkg-javascript-commits mailing list