Pochen/quick fix logic

:koala: :+1: 

There was some glitch in the logic
It failed to pass the validation while requirements only is true and app.js is not present

It is now fixed, the spec is added to test this logic.

/cc @zendesk/quokka @liulikun