From 7b6567e5cff616186b6b83934b5a7a2aa6405eb8 Mon Sep 17 00:00:00 2001 From: John Gee Date: Sat, 20 Mar 2021 23:20:32 +1300 Subject: [PATCH] Fix syntactically incorrect command name (#1488) --- tests/help.visibleCommands.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/help.visibleCommands.test.js b/tests/help.visibleCommands.test.js index bc8aed7e0..3ea8cefcc 100644 --- a/tests/help.visibleCommands.test.js +++ b/tests/help.visibleCommands.test.js @@ -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']);