From 99601da68d59572b6aa931e9416002bcb5b3e19d Mon Sep 17 00:00:00 2001 From: StevenMia <166844090+StevenMia@users.noreply.github.com> Date: Tue, 23 Apr 2024 23:07:43 +0800 Subject: [PATCH] chore: fix some typos in comments (#5135) Signed-off-by: StevenMia --- docs/changelogs/CHANGELOG_V3_older.md | 2 +- docs/index.md | 2 +- lib/nodejs/reporters/parallel-buffered.js | 2 +- lib/nodejs/serializer.js | 2 +- package-scripts.js | 2 +- test/integration/README.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/changelogs/CHANGELOG_V3_older.md b/docs/changelogs/CHANGELOG_V3_older.md index d9ca257f05..a3b6dfd503 100644 --- a/docs/changelogs/CHANGELOG_V3_older.md +++ b/docs/changelogs/CHANGELOG_V3_older.md @@ -789,7 +789,7 @@ Thanks to everyone who contributed, and our fabulous [sponsors and backers](http # 1.10.0 / 2013-05-21 -- add add better globbing support for windows via `glob` module +- add better globbing support for windows via `glob` module - add support to pass through flags such as --debug-brk=1234. Closes [#852](https://github.com/mochajs/mocha/issues/852) - add test.only, test.skip to qunit interface - change to always use word-based diffs for now. Closes [#733](https://github.com/mochajs/mocha/issues/733) diff --git a/docs/index.md b/docs/index.md index a56b64adde..997a90e553 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1458,7 +1458,7 @@ Available root hooks and their behavior: > _Tip: If you need to ensure code runs once and only once in any mode, use [global fixtures](#global-fixtures)._ -As with other hooks, `this` refers to to the current context object: +As with other hooks, `this` refers to the current context object: ```js // test/hooks.mjs diff --git a/lib/nodejs/reporters/parallel-buffered.js b/lib/nodejs/reporters/parallel-buffered.js index 840d718ed8..b697312e62 100644 --- a/lib/nodejs/reporters/parallel-buffered.js +++ b/lib/nodejs/reporters/parallel-buffered.js @@ -54,7 +54,7 @@ const ONCE_EVENT_NAMES = [EVENT_DELAY_BEGIN, EVENT_DELAY_END]; /** * The `ParallelBuffered` reporter is used by each worker process in "parallel" - * mode, by default. Instead of reporting to to `STDOUT`, etc., it retains a + * mode, by default. Instead of reporting to `STDOUT`, etc., it retains a * list of events it receives and hands these off to the callback passed into * {@link Mocha#run}. That callback will then return the data to the main * process. diff --git a/lib/nodejs/serializer.js b/lib/nodejs/serializer.js index b25c493bf0..cfdd3a69fd 100644 --- a/lib/nodejs/serializer.js +++ b/lib/nodejs/serializer.js @@ -117,7 +117,7 @@ class SerializableEvent { /** * Constructs a `SerializableEvent`, throwing if we receive unexpected data. * - * Practically, events emitted from `Runner` have a minumum of zero (0) + * Practically, events emitted from `Runner` have a minimum of zero (0) * arguments-- (for example, {@link Runnable.constants.EVENT_RUN_BEGIN}) and a * maximum of two (2) (for example, * {@link Runnable.constants.EVENT_TEST_FAIL}, where the second argument is an diff --git a/package-scripts.js b/package-scripts.js index 1e4c072973..3ffd751811 100644 --- a/package-scripts.js +++ b/package-scripts.js @@ -110,7 +110,7 @@ module.exports = { }, qunit: { script: test('qunit', '--ui qunit test/interfaces/qunit.spec'), - description: 'Run Node.js QUnit interace tests', + description: 'Run Node.js QUnit interface tests', hiddenFromHelp: true }, exports: { diff --git a/test/integration/README.md b/test/integration/README.md index 5b2e84d750..dd7fa87f77 100644 --- a/test/integration/README.md +++ b/test/integration/README.md @@ -31,7 +31,7 @@ The `helpers.js` module contains many functions to handle the common cases of sp By default, all of these helpers run with the following options: - `--no-color`: it's easier to make assertions about output w/o having to deal w/ ANSI escape codes -- `--no-bail`: overrides a configuration file w/ `bail: true`; providing `--bail` to the arguments list will supress this (useful when testing `--bail`!) +- `--no-bail`: overrides a configuration file w/ `bail: true`; providing `--bail` to the arguments list will suppress this (useful when testing `--bail`!) - `--no-parallel`: overrides a configuration file w/ `parallel: true`; providing `--parallel` to the arguments list will suppress this ## Environment Variables Which Do Stuff