Skip to content

Commit

Permalink
Add back tj#561 into known issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Jan 18, 2020
1 parent f2d7c48 commit 1726986
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/openIssues.test.js.skip
@@ -1,4 +1,16 @@
const commander = require('../');

describe('open issues', () => {
// https://github.com/tj/commander.js/issues/561
test('#561: when specify argument and unknown option with no action handler then error', () => {
const program = new commander.Command();
program
.exitOverride()
.option('-x, --x-flag', 'A flag')
.arguments('<file>');

expect(() => {
program.parse(['node', 'test', '1', '--NONSENSE', '2', '3']);
}).toThrow();
});
});

0 comments on commit 1726986

Please sign in to comment.