From b4344c34fedc7bc850c94874da9c2ee81f809246 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Tue, 6 Mar 2018 04:48:03 +0000 Subject: [PATCH 1/5] chore: spelling: adhere --- chai.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chai.js b/chai.js index 792edbae9..aecaaae2f 100644 --- a/chai.js +++ b/chai.js @@ -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. From 2d9bfc2b8d9e037f0f232cad2de4260770a83159 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Tue, 6 Mar 2018 04:48:45 +0000 Subject: [PATCH 2/5] chore: spelling: assertion --- chai.js | 2 +- lib/chai/utils/transferFlags.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chai.js b/chai.js index aecaaae2f..0fa1bc6a9 100644 --- a/chai.js +++ b/chai.js @@ -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 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 From ba3bf3245e1a685f2d90d6868a8e4f18eb407f70 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Tue, 6 Mar 2018 05:00:25 +0000 Subject: [PATCH 3/5] chore: spelling: overwrites --- chai.js | 6 +++--- lib/chai/utils/overwriteChainableMethod.js | 2 +- lib/chai/utils/overwriteMethod.js | 2 +- lib/chai/utils/overwriteProperty.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chai.js b/chai.js index 0fa1bc6a9..a839593af 100644 --- a/chai.js +++ b/chai.js @@ -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) { 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) { From 8cc21a8b5b1675545a517c616b2c63f87cac34b1 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Tue, 6 Mar 2018 05:01:16 +0000 Subject: [PATCH 4/5] chore: spelling: shortcut --- chai.js | 2 +- lib/chai/utils/inspect.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chai.js b/chai.js index a839593af..03f517457 100644 --- a/chai.js +++ b/chai.js @@ -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) && ( 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) && ( From 541a932442fa130b35add884c4d05ab1d1384958 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Tue, 6 Mar 2018 05:01:25 +0000 Subject: [PATCH 5/5] chore: spelling: strictly --- chai.js | 2 +- lib/chai/interface/assert.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chai.js b/chai.js index 03f517457..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}; 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};