Skip to content

Commit

Permalink
test(cli): fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Aug 15, 2023
1 parent 483cc88 commit 2c7e07a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ test('argv works with zx and node', async () => {
`global {"_":["bar"]}\nimported {"_":["bar"]}\n`
)
assert.is(
(await $`node build/cli.js --eval 'console.log(argv._)' baz`).toString(),
`[ 'baz' ]\n`
(await $`node build/cli.js --eval 'console.log(argv._.join(''))' baz`).toString(),
`baz\n`
)
})

Expand Down

0 comments on commit 2c7e07a

Please sign in to comment.