[Pkg-javascript-commits] [node-shell-quote] 92/137: Add tests for glob patterns
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 19:19:42 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 3418892031b126197302eb57cc92a729b740fac6
Author: Stephen Sugden <me at stephensugden.com>
Date: Thu Oct 17 17:56:43 2013 -0700
Add tests for glob patterns
---
test/op.js | 10 ++++++++++
test/parse.js | 1 -
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/test/op.js b/test/op.js
index 3cedf9f..05b497d 100644
--- a/test/op.js
+++ b/test/op.js
@@ -55,3 +55,13 @@ test('double operators', function (t) {
t.end();
});
+
+test('glob patterns', function (t) {
+ t.same(
+ parse('tap test/*.test.js'),
+ [ 'tap', { op: 'glob', pattern: 'test/*.test.js' } ]
+ );
+
+ t.same(parse('tap "test/*.test.js"'), ['tap', 'test/*.test.js']);
+ t.end();
+})
diff --git a/test/parse.js b/test/parse.js
index 8b446ac..5787897 100644
--- a/test/parse.js
+++ b/test/parse.js
@@ -17,7 +17,6 @@ test('parse shell commands', function (t) {
t.same(parse('a\\ b"c d"\\ e f'), [ 'a bc d e', 'f' ]);
t.same(parse('a\\ b"c d"\\ e\'f g\' h'), [ 'a bc d ef g', 'h' ]);
t.same(parse("x \"bl'a\"'h'"), ['x', "bl'ah"])
- t.same(parse("x 'a'*"), ['x', 'a*'])
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