Skip to content

Commit

Permalink
fix(test): added test to check for inquirer import
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd committed Oct 17, 2023
1 parent 263e557 commit 27e4ed5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,4 +315,18 @@ suite(pkg.name, () => {
assert.strictEqual(o.foo, undefined)
assert.strictEqual(o.bar, undefined)
})

test('run without a promptModule override', async () => {
const opts = opta({
options: {
foo: {
prompt: false
}
}
})

await opts.prompt()()
const o = opts.values()
assert.strictEqual(o.foo, undefined)
})
})

0 comments on commit 27e4ed5

Please sign in to comment.