From 8d3c7b5e826c5e9cc258d5db4c33449c1591d447 Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Thu, 17 Nov 2022 21:43:06 +0100 Subject: [PATCH] Fix some typos (#1821) --- lib/help.js | 2 +- tests/deprecated.test.js | 2 +- tests/help.wrap.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/help.js b/lib/help.js index 9c7fb1ecd..2b8c95596 100644 --- a/lib/help.js +++ b/lib/help.js @@ -216,7 +216,7 @@ class Help { /** * Get the subcommand summary to show in the list of subcommands. - * (Fallback to description for backwards compatiblity.) + * (Fallback to description for backwards compatibility.) * * @param {Command} cmd * @returns {string} diff --git a/tests/deprecated.test.js b/tests/deprecated.test.js index c23f48ce5..9ead410cd 100644 --- a/tests/deprecated.test.js +++ b/tests/deprecated.test.js @@ -21,7 +21,7 @@ describe('option with regular expression instead of custom processing function', expect(program.opts().cheese).toEqual('tasty'); }); - test('when argument does mot matches regexp then value is default', () => { + test('when argument does not match regexp then value is default', () => { const program = new commander.Command(); program .option('--cheese ', 'cheese type', /mild|tasty/, 'mild'); diff --git a/tests/help.wrap.test.js b/tests/help.wrap.test.js index 46ee89d8d..1bcb126b8 100644 --- a/tests/help.wrap.test.js +++ b/tests/help.wrap.test.js @@ -142,7 +142,7 @@ Commands: expect(program.helpInformation()).toBe(expectedOutput); }); - test('when option descripton preformatted then only add small indent', () => { + test('when option description preformatted then only add small indent', () => { // #396: leave custom format alone, apart from space-space indent const optionSpec = '-t, --time '; const program = new commander.Command();