This looks like it should have an else case that sets opts.showPrompt to true, otherwise prompts will never appear when prevalidate is off, due to it starting as null.
as the prompt library has been split out from this one, the tests are only testing validation results, though i could write a test that spies on the prompt fn
This looks like it should have an else case that sets opts.showPrompt to true, otherwise prompts will never appear when prevalidate is off, due to it starting as null.
Not sure why the tests didn't catch this.