Skip to content

Commit f966c94

Browse files
harsha509boneskull
authored andcommitted
Fixing typos
1 parent 8970429 commit f966c94

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

lib/cli/watch-run.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const collectFiles = require('./collect-files');
1919
* @param {Object} opts - Options
2020
* @param {string[]} [opts.watchFiles] - List of paths and patterns to
2121
* watch. If not provided all files with an extension included in
22-
* `fileColletionParams.extension` are watched. See first argument of
22+
* `fileCollectionParams.extension` are watched. See first argument of
2323
* `chokidar.watch`.
2424
* @param {string[]} opts.watchIgnore - List of paths and patterns to
2525
* exclude from watching. See `ignored` option of `chokidar`.
@@ -81,7 +81,7 @@ exports.watchParallelRun = (
8181
* @param {Object} opts - Options
8282
* @param {string[]} [opts.watchFiles] - List of paths and patterns to
8383
* watch. If not provided all files with an extension included in
84-
* `fileColletionParams.extension` are watched. See first argument of
84+
* `fileCollectionParams.extension` are watched. See first argument of
8585
* `chokidar.watch`.
8686
* @param {string[]} opts.watchIgnore - List of paths and patterns to
8787
* exclude from watching. See `ignored` option of `chokidar`.
@@ -144,7 +144,7 @@ exports.watchRun = (mocha, {watchFiles, watchIgnore}, fileCollectParams) => {
144144
* @param {AfterWatchRun} [opts.afterRun] - Function to call after `mocha.run()`
145145
* @param {string[]} [opts.watchFiles] - List of paths and patterns to watch. If
146146
* not provided all files with an extension included in
147-
* `fileColletionParams.extension` are watched. See first argument of
147+
* `fileCollectionParams.extension` are watched. See first argument of
148148
* `chokidar.watch`.
149149
* @param {string[]} [opts.watchIgnore] - List of paths and patterns to exclude
150150
* from watching. See `ignored` option of `chokidar`.

lib/errors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ var constants = {
5959
UNSUPPORTED: 'ERR_MOCHA_UNSUPPORTED',
6060

6161
/**
62-
* Invalid state transition occuring in `Mocha` instance
62+
* Invalid state transition occurring in `Mocha` instance
6363
*/
6464
INSTANCE_ALREADY_RUNNING: 'ERR_MOCHA_INSTANCE_ALREADY_RUNNING',
6565

6666
/**
67-
* Invalid state transition occuring in `Mocha` instance
67+
* Invalid state transition occurring in `Mocha` instance
6868
*/
6969
INSTANCE_ALREADY_DISPOSED: 'ERR_MOCHA_INSTANCE_ALREADY_DISPOSED',
7070

lib/mocha.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Mocha.prototype.addFile = function(file) {
252252
* @public
253253
* @see [CLI option](../#-reporter-name-r-name)
254254
* @see [Reporters](../#reporters)
255-
* @param {String|Function} reporter - Reporter name or constructor.
255+
* @param {String|Function} reporterName - Reporter name or constructor.
256256
* @param {Object} [reporterOptions] - Options used to configure the reporter.
257257
* @returns {Mocha} this
258258
* @chainable
@@ -775,8 +775,8 @@ Mocha.prototype.timeout = function(msecs) {
775775
* // Allow any failed test to retry one more time
776776
* mocha.retries(1);
777777
*/
778-
Mocha.prototype.retries = function(n) {
779-
this.suite.retries(n);
778+
Mocha.prototype.retries = function(retry) {
779+
this.suite.retries(retry);
780780
return this;
781781
};
782782

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ exports.defineConstants = function(obj) {
604604
* Whether current version of Node support ES modules
605605
*
606606
* @description
607-
* Versions prior to 10 did not support ES Modules, and version 10 has an old incompatibile version of ESM.
607+
* Versions prior to 10 did not support ES Modules, and version 10 has an old incompatible version of ESM.
608608
* This function returns whether Node.JS has ES Module supports that is compatible with Mocha's needs,
609609
* which is version >=12.11.
610610
*

0 commit comments

Comments
 (0)