Skip to content

Commit 2dc191b

Browse files
committed
chore(test): update test
1 parent c286cde commit 2dc191b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/inlineBrackets.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test('inline brackets', function (t) {
5050
)
5151

5252
t.deepEqual(
53-
subarg('beep -t [boop -o a.txt -u http://localhost\?q=\[1\] -u http://localhost]'.split(/\s+/)),
53+
subarg('beep -t [boop -o a.txt -u http://localhost\?q=\[1\] -u http://localhost ]'.split(/\s+/)),
5454
{
5555
_: [ 'beep'],
5656
t: {
@@ -111,11 +111,12 @@ test.skip('doesnt work', function (t) {
111111
)
112112

113113
t.deepEqual(
114-
subarg('beep -t [ boop -o a.txt -u [be[ep] ]'.split(/\s+/)),
114+
subarg('beep -t [ boop -o a.txt -u [ be[ep]] ]'.split(/\s+/)),
115115
{
116-
/*
116+
/* Same as above - note the context-closing bracket is right next to an inline closing bracket
117+
* If you add a space, it works
117118
* expected:
118-
* { _: [ 'beep' ], t: { _: [ 'boop' ], o: 'a.txt', u: { _: [ 'beep' ] } } }
119+
* { _: [ 'beep' ], t: { _: [ 'boop' ], o: 'a.txt', u: { _: [ 'be[ep]' ] } } }
119120
* actual:
120121
* { _: [ 'beep' ], t: true }
121122
*/
@@ -124,7 +125,7 @@ test.skip('doesnt work', function (t) {
124125
_: [ 'boop' ],
125126
o: 'a.txt',
126127
u: {
127-
_: [ 'beep' ]
128+
_: [ 'be[ep]' ]
128129
}
129130
}
130131
}

0 commit comments

Comments
 (0)