diff --git a/lib/mocha.js b/lib/mocha.js index dc18b585a5..0b4aa5a4bd 100644 --- a/lib/mocha.js +++ b/lib/mocha.js @@ -807,7 +807,7 @@ Mocha.prototype.slow = function(msecs) { * * @public * @see [CLI option](../#-async-only-a) - * @param {boolean} [asyncOnly=true] - Wether to force `done` callback or promise. + * @param {boolean} [asyncOnly=true] - Whether to force `done` callback or promise. * @return {Mocha} this * @chainable */ @@ -847,7 +847,7 @@ Mocha.prototype.allowUncaught = function(allowUncaught) { * Delays root suite execution. * * @description - * Used to perform asynch operations before any suites are run. + * Used to perform async operations before any suites are run. * * @public * @see [delayed root suite](../#delayed-root-suite) diff --git a/lib/nodejs/serializer.js b/lib/nodejs/serializer.js index ac95bdc344..448cb52e45 100644 --- a/lib/nodejs/serializer.js +++ b/lib/nodejs/serializer.js @@ -56,7 +56,7 @@ class SerializableWorkerResult { /** * Instantiates a new {@link SerializableWorkerResult}. * @param {...any} args - Args to constructor - * @returns {SerilizableWorkerResult} + * @returns {SerializableWorkerResult} */ static create(...args) { return new SerializableWorkerResult(...args); diff --git a/lib/runner.js b/lib/runner.js index cd91173e10..876d64fb24 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -206,7 +206,7 @@ Runner.prototype._addEventListener = function(target, eventName, listener) { /** * Replacement for `target.removeListener(eventName, listener)` that also updates the bookkeeping. * @param {EventEmitter} target - The `EventEmitter` - * @param {string} eventName - The event anme + * @param {string} eventName - The event name * @param {function} listener - Listener function * @private */ diff --git a/lib/utils.js b/lib/utils.js index 00d6fcc938..cf483760cf 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -508,7 +508,7 @@ exports.isPromise = function isPromise(value) { * Clamps a numeric value to an inclusive range. * * @param {number} value - Value to be clamped. - * @param {numer[]} range - Two element array specifying [min, max] range. + * @param {number[]} range - Two element array specifying [min, max] range. * @returns {number} clamped value */ exports.clamp = function clamp(value, range) {