☕️ Classic, reliable, trusted test framework for Node.js and the browser
Fixing typos (#4404)
Donghoon Song4e2b47df31fb
diff --git a/lib/mocha.js b/lib/mocha.jsindex dc18b585..0b4aa5a4 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.jsindex ac95bdc3..448cb52e 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.jsindex cd91173e..876d64fb 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.jsindex 00d6fcc9..cf483760 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) {