Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default doesn't work #3

Open
sbj42 opened this issue Aug 29, 2017 · 1 comment
Open

Default doesn't work #3

sbj42 opened this issue Aug 29, 2017 · 1 comment
Labels

Comments

@sbj42
Copy link

sbj42 commented Aug 29, 2017

If I run node ./examples/prompt.js from the repo, it starts with this prompt:

? Conflict on file.js  (yadXh)

Because 'x' is the default, and the letter X is capitalized in the prompt, I expect that pressing ENTER at this point would choose option 'x'. Instead I get this when I press ENTER:

? Conflict on file.js
>> Please enter a valid letter
@jonschlinkert
Copy link
Member

Thanks for letting us know about these issues. I'll make sure the unit tests are updated to cover these things (fwiw we figured out a better way to do the unit tests after a lot of these modules were published. before that, the tests were a pain)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants