[Pkg-javascript-commits] [node-shell-quote] 69/137: another check just to make sure env() works

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 914a1a9ec55cd76bedfed4086c35866733128036
Author: James Halliday <mail at substack.net>
Date:   Mon May 13 06:38:30 2013 -0700

    another check just to make sure env() works
---
 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 0762f2d..04c962c 100644
--- a/test/env_fn.js
+++ b/test/env_fn.js
@@ -2,10 +2,11 @@ var test = require('tape');
 var parse = require('../').parse;
 
 test('functional env expansion', function (t) {
-    t.plan(2);
+    t.plan(3);
     
     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' ]);
     
     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