Skip to content

Commit

Permalink
Merge pull request #1145 from jsoref/spelling
Browse files Browse the repository at this point in the history
Spelling
  • Loading branch information
astorije authored Mar 7, 2018
2 parents 25010c9 + 541a932 commit 7db5214
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions chai.js
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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) && (
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/interface/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/utils/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) && (
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/utils/overwriteChainableMethod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/utils/overwriteMethod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/utils/overwriteProperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/utils/transferFlags.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7db5214

Please sign in to comment.