Skip to content

Commit 27e4ed5

Browse files
committed
fix(test): added test to check for inquirer import
1 parent 263e557 commit 27e4ed5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,4 +315,18 @@ suite(pkg.name, () => {
315315
assert.strictEqual(o.foo, undefined)
316316
assert.strictEqual(o.bar, undefined)
317317
})
318+
319+
test('run without a promptModule override', async () => {
320+
const opts = opta({
321+
options: {
322+
foo: {
323+
prompt: false
324+
}
325+
}
326+
})
327+
328+
await opts.prompt()()
329+
const o = opts.values()
330+
assert.strictEqual(o.foo, undefined)
331+
})
318332
})

0 commit comments

Comments
 (0)