Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.

Commit 889e22e

Browse files
authored
Merge pull request #171 from jsoref/spelling
Spelling
2 parents 0abf2d5 + 79ec809 commit 889e22e

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

History.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# 13.1.1 / 2017-10-07
1818

19-
* Added missing return type for `.rejecteWith` in typescript definition
19+
* Added missing return type for `.rejectedWith` in typescript definition
2020

2121
# 13.1.0 / 2017-09-20
2222

@@ -86,7 +86,7 @@
8686

8787
# 9.0.0 / 2016-05-30
8888

89-
* Set should.config values to be more obvious. Pls check brecking changes page for exact values.
89+
* Set should.config values to be more obvious. Pls check breaking changes page for exact values.
9090
* Add support for SIMD data types.
9191
* Fixed minor bugs in .eql
9292
* Allow to show all equality check fails in .eql
@@ -180,7 +180,7 @@
180180
* **Breaking Change (possibly)** .matchEach and .matchAny now uses internally .match. See #65.
181181
* **Breaking Change** No more getter assertions. No all assertions are functions.
182182
* **Breaking Change** No more proxy returning, to check property names.
183-
* **Breaking Change** `should-format` now looks more like chrome developer tools inpections.
183+
* **Breaking Change** `should-format` now looks more like chrome developer tools inspections.
184184

185185
# 6.0.3 / 2015-05-18
186186

@@ -218,12 +218,12 @@
218218
* Remove old .eql implementation
219219
* Refactor nested errors
220220
* Added separate reporting message for false negative results like 10.should.not.equal(10)
221-
* Make error.message lazy fix old perfomance bottlenecks for constructing messages for big objects
221+
* Make error.message lazy fix old performance bottlenecks for constructing messages for big objects
222222
* Added .propertyWithDescriptor
223223

224224
# 4.6.5 / 2015-02-05
225225

226-
* Fix perfomance degradation on large objects
226+
* Fix performance degradation on large objects
227227

228228
# 4.6.4 / 2015-02-05
229229

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ AssertionError: expected { id: 10 } to be asset
188188
189189
* [`should-sinon`](https://github.com/shouldjs/sinon) - adds additional assertions for sinon.js
190190
* [`should-immutable`](https://github.com/shouldjs/should-immutable) - extends different parts of should.js to make immutable.js first-class citizen in should.js
191-
* [`should-http`](https://github.com/shouldjs/http) - adds small assetions for assertion on http responses for node only
192-
* [`should-jq`](https://github.com/shouldjs/jq) - asserions for jq (need maintainer)
191+
* [`should-http`](https://github.com/shouldjs/http) - adds small assertions for assertion on http responses for node only
192+
* [`should-jq`](https://github.com/shouldjs/jq) - assertions for jq (need maintainer)
193193
* [`karma-should`](https://github.com/seegno/karma-should) - make more or less easy to work karma with should.js
194-
* [`should-spies`](https://github.com/shouldjs/spies) - small and dirty simple zero dependcies spies
194+
* [`should-spies`](https://github.com/shouldjs/spies) - small and dirty simple zero dependencies spies
195195
196196
197197
## Contributions

lib/assertion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Assertion.prototype = {
5454
* Before calling this method need to fill Assertion#params object. This method usually called from other assertion methods.
5555
* `Assertion#params` can contain such properties:
5656
* * `operator` - required string containing description of this assertion
57-
* * `obj` - optional replacement for this.obj, it usefull if you prepare more clear object then given
57+
* * `obj` - optional replacement for this.obj, it is useful if you prepare more clear object then given
5858
* * `message` - if this property filled with string any others will be ignored and this one used as assertion message
5959
* * `expected` - any object used when you need to assert relation between given object and expected. Like given == expected (== is a relation)
6060
* * `details` - additional string with details to generated message

should.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ declare function should(obj: any): should.Assertion;
99
equal(actual: any, expected: any, message?: string): void;
1010
notEqual(actual: any, expected: any, message?: string): void;
1111
deepEqual(actual: any, expected: any, message?: string): void;
12-
notDeepEqual(acutal: any, expected: any, message?: string): void;
12+
notDeepEqual(actual: any, expected: any, message?: string): void;
1313
strictEqual(actual: any, expected: any, message?: string): void;
1414
notStrictEqual(actual: any, expected: any, message?: string): void;
1515
@@ -43,7 +43,7 @@ declare namespace should {
4343
function equal(actual: any, expected: any, message?: string): void;
4444
function notEqual(actual: any, expected: any, message?: string): void;
4545
function deepEqual(actual: any, expected: any, message?: string): void;
46-
function notDeepEqual(acutal: any, expected: any, message?: string): void;
46+
function notDeepEqual(actual: any, expected: any, message?: string): void;
4747
function strictEqual(actual: any, expected: any, message?: string): void;
4848
function notStrictEqual(actual: any, expected: any, message?: string): void;
4949

@@ -119,7 +119,7 @@ declare namespace should {
119119
throw(): this;
120120
throw(msg: RegExp | string | Function, properties?: {}): this;
121121
throw(properties: {}): this;
122-
//TODO how to expess generators???
122+
//TODO how to express generators???
123123
throwError(): this;
124124
throwError(msg: RegExp | string | Function, properties?: {}): this;
125125
throwError(properties: {}): this;

should.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ TypeChecker.prototype = {
134134
},
135135

136136
addTypeOf: function(type, res) {
137-
return this.add(function(obj, tpeOf) {
138-
if (tpeOf === type) {
137+
return this.add(function(obj, typeOf) {
138+
if (typeOf === type) {
139139
return new Type(res);
140140
}
141141
});
142142
},
143143

144144
addClass: function(cls, res, sub) {
145-
return this.add(function(obj, tpeOf, objCls) {
145+
return this.add(function(obj, typeOf, objCls) {
146146
if (objCls === cls) {
147147
return new Type(types.OBJECT, res, sub);
148148
}
@@ -241,7 +241,7 @@ main
241241
}
242242
})
243243
.add(function(obj) {
244-
// probably at the begginging should be enough these checks
244+
// probably at the beginning should be enough these checks
245245
if (obj.Boolean === Boolean && obj.Number === Number && obj.String === String && obj.Date === Date) {
246246
return new Type(types.OBJECT, types.HOST);
247247
}
@@ -1612,7 +1612,7 @@ Assertion.prototype = {
16121612
* Before calling this method need to fill Assertion#params object. This method usually called from other assertion methods.
16131613
* `Assertion#params` can contain such properties:
16141614
* * `operator` - required string containing description of this assertion
1615-
* * `obj` - optional replacement for this.obj, it usefull if you prepare more clear object then given
1615+
* * `obj` - optional replacement for this.obj, it is useful if you prepare more clear object then given
16161616
* * `message` - if this property filled with string any others will be ignored and this one used as assertion message
16171617
* * `expected` - any object used when you need to assert relation between given object and expected. Like given == expected (== is a relation)
16181618
* * `details` - additional string with details to generated message

0 commit comments

Comments
 (0)