Skip to content

Commit

Permalink
Fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
harsha509 authored and boneskull committed Jul 29, 2020
1 parent 8970429 commit f966c94
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions lib/cli/watch-run.js
Expand Up @@ -19,7 +19,7 @@ const collectFiles = require('./collect-files');
* @param {Object} opts - Options
* @param {string[]} [opts.watchFiles] - List of paths and patterns to
* watch. If not provided all files with an extension included in
* `fileColletionParams.extension` are watched. See first argument of
* `fileCollectionParams.extension` are watched. See first argument of
* `chokidar.watch`.
* @param {string[]} opts.watchIgnore - List of paths and patterns to
* exclude from watching. See `ignored` option of `chokidar`.
Expand Down Expand Up @@ -81,7 +81,7 @@ exports.watchParallelRun = (
* @param {Object} opts - Options
* @param {string[]} [opts.watchFiles] - List of paths and patterns to
* watch. If not provided all files with an extension included in
* `fileColletionParams.extension` are watched. See first argument of
* `fileCollectionParams.extension` are watched. See first argument of
* `chokidar.watch`.
* @param {string[]} opts.watchIgnore - List of paths and patterns to
* exclude from watching. See `ignored` option of `chokidar`.
Expand Down Expand Up @@ -144,7 +144,7 @@ exports.watchRun = (mocha, {watchFiles, watchIgnore}, fileCollectParams) => {
* @param {AfterWatchRun} [opts.afterRun] - Function to call after `mocha.run()`
* @param {string[]} [opts.watchFiles] - List of paths and patterns to watch. If
* not provided all files with an extension included in
* `fileColletionParams.extension` are watched. See first argument of
* `fileCollectionParams.extension` are watched. See first argument of
* `chokidar.watch`.
* @param {string[]} [opts.watchIgnore] - List of paths and patterns to exclude
* from watching. See `ignored` option of `chokidar`.
Expand Down
4 changes: 2 additions & 2 deletions lib/errors.js
Expand Up @@ -59,12 +59,12 @@ var constants = {
UNSUPPORTED: 'ERR_MOCHA_UNSUPPORTED',

/**
* Invalid state transition occuring in `Mocha` instance
* Invalid state transition occurring in `Mocha` instance
*/
INSTANCE_ALREADY_RUNNING: 'ERR_MOCHA_INSTANCE_ALREADY_RUNNING',

/**
* Invalid state transition occuring in `Mocha` instance
* Invalid state transition occurring in `Mocha` instance
*/
INSTANCE_ALREADY_DISPOSED: 'ERR_MOCHA_INSTANCE_ALREADY_DISPOSED',

Expand Down
6 changes: 3 additions & 3 deletions lib/mocha.js
Expand Up @@ -252,7 +252,7 @@ Mocha.prototype.addFile = function(file) {
* @public
* @see [CLI option](../#-reporter-name-r-name)
* @see [Reporters](../#reporters)
* @param {String|Function} reporter - Reporter name or constructor.
* @param {String|Function} reporterName - Reporter name or constructor.
* @param {Object} [reporterOptions] - Options used to configure the reporter.
* @returns {Mocha} this
* @chainable
Expand Down Expand Up @@ -775,8 +775,8 @@ Mocha.prototype.timeout = function(msecs) {
* // Allow any failed test to retry one more time
* mocha.retries(1);
*/
Mocha.prototype.retries = function(n) {
this.suite.retries(n);
Mocha.prototype.retries = function(retry) {
this.suite.retries(retry);
return this;
};

Expand Down
2 changes: 1 addition & 1 deletion lib/utils.js
Expand Up @@ -604,7 +604,7 @@ exports.defineConstants = function(obj) {
* Whether current version of Node support ES modules
*
* @description
* Versions prior to 10 did not support ES Modules, and version 10 has an old incompatibile version of ESM.
* Versions prior to 10 did not support ES Modules, and version 10 has an old incompatible version of ESM.
* This function returns whether Node.JS has ES Module supports that is compatible with Mocha's needs,
* which is version >=12.11.
*
Expand Down

0 comments on commit f966c94

Please sign in to comment.