diff --git a/chai.js b/chai.js index 792edbae9..6ccdc8c2a 100644 --- a/chai.js +++ b/chai.js @@ -4998,7 +4998,7 @@ module.exports = function (chai, util) { * an array, the array is searched for an element that's strictly equal to the * given value. When asserting a subset of properties in an object, the object * is searched for the given property keys, checking that each one is present - * and stricty equal to the given property value. For instance: + * and strictly equal to the given property value. For instance: * * var obj1 = {a: 1} * , obj2 = {b: 2}; @@ -8397,7 +8397,7 @@ function formatValue(ctx, value, recurseTimes) { var name, nameSuffix; - // Some type of object without properties can be shortcutted. + // Some type of object without properties can be shortcut. // In IE, errors have a single `stack` property, or if they are vanilla `Error`, // a `stack` plus `description` property; ignore those for consistency. if (keys.length === 0 || (isError(value) && ( @@ -8793,7 +8793,7 @@ var transferFlags = require('./transferFlags'); /** * ### .overwriteChainableMethod(ctx, name, method, chainingBehavior) * - * Overwites an already existing chainable method + * Overwrites an already existing chainable method * and provides access to the previous function or * property. Must return functions to be used for * name. @@ -8867,7 +8867,7 @@ var transferFlags = require('./transferFlags'); /** * ### .overwriteMethod(ctx, name, fn) * - * Overwites an already existing method and provides + * Overwrites an already existing method and provides * access to previous function. Must return function * to be used for name. * @@ -8960,7 +8960,7 @@ var transferFlags = require('./transferFlags'); /** * ### .overwriteProperty(ctx, name, fn) * - * Overwites an already existing property getter and provides + * Overwrites an already existing property getter and provides * access to previous value. Must return function to use as getter. * * utils.overwriteProperty(chai.Assertion.prototype, 'ok', function (_super) { @@ -9215,7 +9215,7 @@ module.exports = function test(obj, args) { * var newAssertion = new Assertion(); * utils.transferFlags(assertion, newAssertion); * - * var anotherAsseriton = new Assertion(myObj); + * var anotherAssertion = new Assertion(myObj); * utils.transferFlags(assertion, anotherAssertion, false); * * @param {Assertion} assertion the assertion to transfer the flags from @@ -10448,7 +10448,7 @@ module.exports = function typeDetect(obj) { /* ! Spec Conformance * (https://html.spec.whatwg.org/#document) * WhatWG HTML$3.1.1 - The `Document` object - * Note: Most browsers currently adher to the W3C DOM Level 2 spec + * Note: Most browsers currently adhere to the W3C DOM Level 2 spec * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268) * which suggests that browsers should use HTMLTableCellElement for * both TD and TH elements. WhatWG separates these. @@ -10501,7 +10501,7 @@ module.exports = function typeDetect(obj) { /* ! Spec Conformance * (https://html.spec.whatwg.org/#htmltabledatacellelement) * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableDataCellElement` - * Note: Most browsers currently adher to the W3C DOM Level 2 spec + * Note: Most browsers currently adhere to the W3C DOM Level 2 spec * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075) * which suggests that browsers should use HTMLTableCellElement for * both TD and TH elements. WhatWG separates these. @@ -10517,7 +10517,7 @@ module.exports = function typeDetect(obj) { /* ! Spec Conformance * (https://html.spec.whatwg.org/#htmltableheadercellelement) * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableHeaderCellElement` - * Note: Most browsers currently adher to the W3C DOM Level 2 spec + * Note: Most browsers currently adhere to the W3C DOM Level 2 spec * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075) * which suggests that browsers should use HTMLTableCellElement for * both TD and TH elements. WhatWG separates these. diff --git a/lib/chai/interface/assert.js b/lib/chai/interface/assert.js index 9c0ab0a15..792af714c 100644 --- a/lib/chai/interface/assert.js +++ b/lib/chai/interface/assert.js @@ -919,7 +919,7 @@ module.exports = function (chai, util) { * an array, the array is searched for an element that's strictly equal to the * given value. When asserting a subset of properties in an object, the object * is searched for the given property keys, checking that each one is present - * and stricty equal to the given property value. For instance: + * and strictly equal to the given property value. For instance: * * var obj1 = {a: 1} * , obj2 = {b: 2}; diff --git a/lib/chai/utils/inspect.js b/lib/chai/utils/inspect.js index 205c52da0..b054aebae 100644 --- a/lib/chai/utils/inspect.js +++ b/lib/chai/utils/inspect.js @@ -105,7 +105,7 @@ function formatValue(ctx, value, recurseTimes) { var name, nameSuffix; - // Some type of object without properties can be shortcutted. + // Some type of object without properties can be shortcut. // In IE, errors have a single `stack` property, or if they are vanilla `Error`, // a `stack` plus `description` property; ignore those for consistency. if (keys.length === 0 || (isError(value) && ( diff --git a/lib/chai/utils/overwriteChainableMethod.js b/lib/chai/utils/overwriteChainableMethod.js index 3ca922492..4b38569e4 100644 --- a/lib/chai/utils/overwriteChainableMethod.js +++ b/lib/chai/utils/overwriteChainableMethod.js @@ -10,7 +10,7 @@ var transferFlags = require('./transferFlags'); /** * ### .overwriteChainableMethod(ctx, name, method, chainingBehavior) * - * Overwites an already existing chainable method + * Overwrites an already existing chainable method * and provides access to the previous function or * property. Must return functions to be used for * name. diff --git a/lib/chai/utils/overwriteMethod.js b/lib/chai/utils/overwriteMethod.js index f77a4f493..7925e05ff 100644 --- a/lib/chai/utils/overwriteMethod.js +++ b/lib/chai/utils/overwriteMethod.js @@ -13,7 +13,7 @@ var transferFlags = require('./transferFlags'); /** * ### .overwriteMethod(ctx, name, fn) * - * Overwites an already existing method and provides + * Overwrites an already existing method and provides * access to previous function. Must return function * to be used for name. * diff --git a/lib/chai/utils/overwriteProperty.js b/lib/chai/utils/overwriteProperty.js index 82ed3c876..5f870b02a 100644 --- a/lib/chai/utils/overwriteProperty.js +++ b/lib/chai/utils/overwriteProperty.js @@ -12,7 +12,7 @@ var transferFlags = require('./transferFlags'); /** * ### .overwriteProperty(ctx, name, fn) * - * Overwites an already existing property getter and provides + * Overwrites an already existing property getter and provides * access to previous value. Must return function to use as getter. * * utils.overwriteProperty(chai.Assertion.prototype, 'ok', function (_super) { diff --git a/lib/chai/utils/transferFlags.js b/lib/chai/utils/transferFlags.js index 634e0537a..7b501900d 100644 --- a/lib/chai/utils/transferFlags.js +++ b/lib/chai/utils/transferFlags.js @@ -16,7 +16,7 @@ * var newAssertion = new Assertion(); * utils.transferFlags(assertion, newAssertion); * - * var anotherAsseriton = new Assertion(myObj); + * var anotherAssertion = new Assertion(myObj); * utils.transferFlags(assertion, anotherAssertion, false); * * @param {Assertion} assertion the assertion to transfer the flags from