[Pkg-javascript-commits] [node-shell-quote] 58/137: another test for op object quoting

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:39 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 5819a31a19c34967dcb7bd1719250ed2aa480583
Author: James Halliday <mail at substack.net>
Date:   Mon May 13 03:34:11 2013 -0700

    another test for op object quoting
---
 test/quote.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/quote.js b/test/quote.js
index 460dcc2..3bff8b5 100644
--- a/test/quote.js
+++ b/test/quote.js
@@ -17,5 +17,9 @@ test('quote', function (t) {
 
 test('quote ops', function (t) {
     t.equal(quote([ 'a', { op: '|' }, 'b' ]), 'a \\| b');
+    t.equal(
+        quote([ 'a', { op: '&&' }, 'b', { op: ';' }, 'c' ]),
+        'a \\&\\& b \\; c'
+    );
     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