Skip to content

Commit

Permalink
Fix syntactically incorrect command name (#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Mar 20, 2021
1 parent 0fa4b8d commit 7b6567e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/help.visibleCommands.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ describe('visibleCommands', () => {
const program = new commander.Command();
program
.command('visible', 'desc')
.command('invisible executable', 'desc', { hidden: true });
.command('invisible-executable', 'desc', { hidden: true });
program
.command('invisible action', { hidden: true });
.command('invisible-action', { hidden: true });
const helper = new commander.Help();
const visibleCommandNames = helper.visibleCommands(program).map(cmd => cmd.name());
expect(visibleCommandNames).toEqual(['visible', 'help']);
Expand Down

0 comments on commit 7b6567e

Please sign in to comment.