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 10, 2020
1 parent a6bf6dd commit 5340525
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/openIssues.test.js.skip
Original file line number Diff line number Diff line change
@@ -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 5340525

Please sign in to comment.