[Pkg-javascript-commits] [node-shell-quote] 17/137: minor fix to an env test

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:35 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 601b3406e7012da97771b0ed538288ddb12d9af8
Author: James Halliday <mail at substack.net>
Date:   Sun Apr 14 20:07:14 2013 -0700

    minor fix to an env test
---
 test/env.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/env.js b/test/env.js
index 8ca4fab..20ff7da 100644
--- a/test/env.js
+++ b/test/env.js
@@ -1,12 +1,12 @@
-var test = require('tap').test;
+var test = require('tape');
 var parse = require('../').parse;
 
 test('expand environment variables', function (t) {
     t.same(parse('a $XYZ c', { XYZ: 'b' }), [ 'a', 'b', 'c' ]);
     t.same(parse('a${XYZ}c', { XYZ: 'b' }), [ 'abc' ]);
     t.same(parse('a${XYZ}c $XYZ', { XYZ: 'b' }), [ 'abcb b' ]);
-    t.same(parse('"_$X-$Y_"', { X: 'a', Y: 'b' }), [ '_a-b_' ]);
-    t.same(parse("'_$X-$Y_'", { X: 'a', Y: 'b' }), [ '_$X-$Y_' ]);
+    t.same(parse('"-$X-$Y-"', { X: 'a', Y: 'b' }), [ '-a-b-' ]);
+    t.same(parse("'-$X-$Y-'", { X: 'a', Y: 'b' }), [ '-$X-$Y-' ]);
     t.same(parse('qrs"$zzz"wxy', { zzz: 'tuv' }), [ 'qrstuvwxy' ]);
     t.same(parse("qrs'$zzz'wxy", { zzz: 'tuv' }), [ 'qrs$zzzwxy' ]);
     t.same(parse("qrs${zzz}wxy"), [ 'qrswxy' ]);

-- 
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