[Pkg-javascript-commits] [node-shell-quote] 85/137: failing set test with an env cb

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:41 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 9fb20968b407c590745a982d2a562960e952142d
Author: James Halliday <mail at substack.net>
Date:   Mon Jun 24 04:59:41 2013 -0700

    failing set test with an env cb
---
 test/set.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/test/set.js b/test/set.js
index e30509b..ac45cf1 100644
--- a/test/set.js
+++ b/test/set.js
@@ -14,6 +14,16 @@ test('set env vars', function (t) {
         parse('X="7 8 9" printx'),
         [ 'X=7 8 9', 'printx' ]
     );
+    t.same(
+        parse('X="7 8 9"; printx'),
+        [ 'X=7 8 9', { op: ';' }, 'printx' ]
+    );
+    t.same(
+        parse('X="7 8 9"; printx', function (key) {
+            t.fail('should not have matched any keys');
+        }),
+        [ 'X=7 8 9', { op: ';' }, 'printx' ]
+    );
     
     t.end();
 });

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