PentiaLabs / generator-helix

Generate Helix compliant solutions with Yeoman.
MIT License
40 stars 22 forks source link

Bug: On Helix:Add the ProjectName attribute is not validated #90

Closed patelcp closed 7 years ago

patelcp commented 7 years ago

User story

As a generator, I want to ensure that users properly fill out the ProjectName prompt so that the generation of the add subgenerator doesn't error out.

Expected behavior

User should not be able to leave the ProjectName prompt empty when generating a layer module. ProjectName should be required.

Actual behavior

User is able to hit enter and leave the ProjectName prompt empty.

Steps to reproduce the behavior

  1. Run yo helix:add
  2. When prompted to fill in ProjectName leave the field empty and hit enter
  3. Oontinue with remaining generation process
  4. Observe error thrown because ProjectName is empty
Saturate commented 7 years ago

Good catch we should fix this and write a test for it.