Skip to content

Commit

Permalink
test: use resolve for cli test.
Browse files Browse the repository at this point in the history
  • Loading branch information
knightedcodemonkey committed Jun 30, 2024
1 parent 1f16f7e commit 3ed0a1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ describe('duel', () => {
})

it('works as a cli script', () => {
const resp = execSync('./src/duel.js -h', { cwd: resolve(__dirname, '..') })
const resp = execSync(`${resolve('./src/duel.js')} -h`, {
cwd: resolve(__dirname, '..'),
})

assert.ok(resp.toString().indexOf('Options:') > -1)
})
Expand Down

0 comments on commit 3ed0a1c

Please sign in to comment.