From 2c2bb5be102950202e77cd911a29b08d51fe63e6 Mon Sep 17 00:00:00 2001 From: Donghoon Song <32301380+Donghoon759@users.noreply.github.com> Date: Mon, 17 Aug 2020 21:20:15 +0900 Subject: [PATCH] Fixing typos (#4404) * Fix typo * Fix typos * Fix netlify deploy preview issue --- lib/mocha.js | 4 ++-- lib/nodejs/serializer.js | 2 +- lib/runner.js | 2 +- lib/utils.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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) {