Skip to content

Commit dcf2ac4

Browse files
beeequeuebcomnes
authored andcommitted
add tests for double stars
1 parent d808b08 commit dcf2ac4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/pattern.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,24 @@ describe('[pattern] it should run matched tasks if glob like patterns are given.
5050
})
5151
})
5252

53+
describe('"test-task:append:**" to "test-task:append:a", "test-task:append:a:c", "test-task:append:a:d", and "test-task:append:b"', () => {
54+
it('Node API', async () => {
55+
await nodeApi('test-task:append:**')
56+
assert(result() === 'aaacacadadbb')
57+
})
58+
59+
it('npm-run-all command', async () => {
60+
await runAll(['test-task:append:**'])
61+
assert(result() === 'aaacacadadbb')
62+
})
63+
64+
it('run-s command', async () => {
65+
await runSeq(['test-task:append:**'])
66+
assert(result() === 'aaacacadadbb')
67+
})
68+
})
69+
70+
// should act same way as section above
5371
describe('"test-task:append:**:*" to "test-task:append:a", "test-task:append:a:c", "test-task:append:a:d", and "test-task:append:b"', () => {
5472
it('Node API', async () => {
5573
await nodeApi('test-task:append:**:*')

0 commit comments

Comments
 (0)