Skip to content

Commit

Permalink
test: no cwd for cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
knightedcodemonkey committed Sep 30, 2024
1 parent 4fa67b5 commit 4700ca0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,8 @@ describe('duel', () => {
})

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

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

0 comments on commit 4700ca0

Please sign in to comment.