Skip to content

Commit a66de94

Browse files
committed
[Tests] increase coverage
1 parent b42ac73 commit a66de94

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/parse.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ var parse = require('../').parse;
66
test('parse shell commands', function (t) {
77
t.same(parse(''), [], 'parses an empty string');
88

9+
t['throws'](
10+
function () { parse('${}'); },
11+
Error,
12+
'empty substitution throws'
13+
);
14+
t['throws'](
15+
function () { parse('${'); },
16+
Error,
17+
'incomplete substitution throws'
18+
);
19+
920
t.same(parse('a \'b\' "c"'), ['a', 'b', 'c']);
1021
t.same(
1122
parse('beep "boop" \'foo bar baz\' "it\'s \\"so\\" groovy"'),

0 commit comments

Comments
 (0)