Created
September 8, 2016 14:29
-
-
Save rpl/1fd15005c2e97f17ba7f0bb404f41394 to your computer and use it in GitHub Desktop.
fix web-ext test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('throws an error about unknown sub-command options', () => { | |
const program = new Program(['thing', '--nope']) | |
.command('thing', '', () => {}); | |
return run(program) | |
.then(makeSureItFails()) | |
.catch((error) => { | |
// Again, yargs calls this an argument not an option for some reason. | |
assert.match(error.message, /Unknown argument: --nope/); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment