Skip to content

Commit

Permalink
Remove openIssues test for tj#1062, fixed and being tested
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Jan 4, 2020
1 parent 80b3587 commit 898a218
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/openIssues.test.js.skip
Expand Up @@ -66,19 +66,4 @@ describe('open issues', () => {
done();
});
});

// https://github.com/tj/commander.js/pull/1062
test.skip('#1062 when .action on program with subcommands and no program argument then program action called', () => {
const actionMock = jest.fn();
const program = new commander.Command();
program
.arguments('[file]')
.action(actionMock);
program
.command('subcommand');

program.parse(['node', 'test']);

expect(actionMock).toHaveBeenCalledWith(undefined, program);
});
});

0 comments on commit 898a218

Please sign in to comment.