Skip to content

Commit 4e2b47d

Browse files
Fixing typos (#4404)
* Fix typo * Fix typos * Fix netlify deploy preview issue
1 parent 2b8a1ff commit 4e2b47d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/mocha.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ Mocha.prototype.slow = function(msecs) {
807807
*
808808
* @public
809809
* @see [CLI option](../#-async-only-a)
810-
* @param {boolean} [asyncOnly=true] - Wether to force `done` callback or promise.
810+
* @param {boolean} [asyncOnly=true] - Whether to force `done` callback or promise.
811811
* @return {Mocha} this
812812
* @chainable
813813
*/
@@ -847,7 +847,7 @@ Mocha.prototype.allowUncaught = function(allowUncaught) {
847847
* Delays root suite execution.
848848
*
849849
* @description
850-
* Used to perform asynch operations before any suites are run.
850+
* Used to perform async operations before any suites are run.
851851
*
852852
* @public
853853
* @see [delayed root suite](../#delayed-root-suite)

lib/nodejs/serializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class SerializableWorkerResult {
5656
/**
5757
* Instantiates a new {@link SerializableWorkerResult}.
5858
* @param {...any} args - Args to constructor
59-
* @returns {SerilizableWorkerResult}
59+
* @returns {SerializableWorkerResult}
6060
*/
6161
static create(...args) {
6262
return new SerializableWorkerResult(...args);

lib/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Runner.prototype._addEventListener = function(target, eventName, listener) {
206206
/**
207207
* Replacement for `target.removeListener(eventName, listener)` that also updates the bookkeeping.
208208
* @param {EventEmitter} target - The `EventEmitter`
209-
* @param {string} eventName - The event anme
209+
* @param {string} eventName - The event name
210210
* @param {function} listener - Listener function
211211
* @private
212212
*/

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ exports.isPromise = function isPromise(value) {
508508
* Clamps a numeric value to an inclusive range.
509509
*
510510
* @param {number} value - Value to be clamped.
511-
* @param {numer[]} range - Two element array specifying [min, max] range.
511+
* @param {number[]} range - Two element array specifying [min, max] range.
512512
* @returns {number} clamped value
513513
*/
514514
exports.clamp = function clamp(value, range) {

0 commit comments

Comments
 (0)