[Pkg-javascript-commits] [node-shell-quote] 56/137: test for parsed ops objects in quote()

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 59fb71b39c53b83306d015bec62fc93667745f75
Author: James Halliday <mail at substack.net>
Date:   Mon May 13 03:32:54 2013 -0700

    test for parsed ops objects in quote()
---
 test/quote.js | 5 +++++
 1 file changed, 5 insertions(+)

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