cli: exit with error code 1 on invalid command (#461)

This commit is contained in:
Gleb Bahmutov
2017-09-13 12:37:15 -04:00
committed by GitHub
parent ae750c2730
commit 70a7fa0572
4 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -20,11 +20,11 @@ describe('cli', function () {
this.exec = (args) => cli.init(`node test ${args}`.split(' '))
})
context('unknown command', () =>
context('unknown command', () => {
it('shows usage and exits', () =>
execa('bin/cypress', ['foo']).then(snapshot)
)
)
})
context('cypress version', function () {
it('reports package version', function (done) {