Skip to content

Commit 7b6567e

Browse files
authored
Fix syntactically incorrect command name (#1488)
1 parent 0fa4b8d commit 7b6567e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/help.visibleCommands.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ describe('visibleCommands', () => {
2323
const program = new commander.Command();
2424
program
2525
.command('visible', 'desc')
26-
.command('invisible executable', 'desc', { hidden: true });
26+
.command('invisible-executable', 'desc', { hidden: true });
2727
program
28-
.command('invisible action', { hidden: true });
28+
.command('invisible-action', { hidden: true });
2929
const helper = new commander.Help();
3030
const visibleCommandNames = helper.visibleCommands(program).map(cmd => cmd.name());
3131
expect(visibleCommandNames).toEqual(['visible', 'help']);

0 commit comments

Comments
 (0)