Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling #1145

Merged
merged 5 commits into from Mar 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions chai.js
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
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
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
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
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
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
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