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

Commit

Permalink
Spelling fixes
Browse files Browse the repository at this point in the history
* actual
* assertions
* beginning
* breaking
* dependencies
* express
* inspections
* it is
* performance
* rejected
* type
* useful
  • Loading branch information
jsoref committed Feb 27, 2018
1 parent 0abf2d5 commit 79ec809
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions History.md
Expand Up @@ -16,7 +16,7 @@

# 13.1.1 / 2017-10-07

* Added missing return type for `.rejecteWith` in typescript definition
* Added missing return type for `.rejectedWith` in typescript definition

# 13.1.0 / 2017-09-20

Expand Down Expand Up @@ -86,7 +86,7 @@

# 9.0.0 / 2016-05-30

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

# 6.0.3 / 2015-05-18

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

# 4.6.5 / 2015-02-05

* Fix perfomance degradation on large objects
* Fix performance degradation on large objects

# 4.6.4 / 2015-02-05

Expand Down
6 changes: 3 additions & 3 deletions Readme.md
Expand Up @@ -188,10 +188,10 @@ AssertionError: expected { id: 10 } to be asset

* [`should-sinon`](https://github.com/shouldjs/sinon) - adds additional assertions for sinon.js
* [`should-immutable`](https://github.com/shouldjs/should-immutable) - extends different parts of should.js to make immutable.js first-class citizen in should.js
* [`should-http`](https://github.com/shouldjs/http) - adds small assetions for assertion on http responses for node only
* [`should-jq`](https://github.com/shouldjs/jq) - asserions for jq (need maintainer)
* [`should-http`](https://github.com/shouldjs/http) - adds small assertions for assertion on http responses for node only
* [`should-jq`](https://github.com/shouldjs/jq) - assertions for jq (need maintainer)
* [`karma-should`](https://github.com/seegno/karma-should) - make more or less easy to work karma with should.js
* [`should-spies`](https://github.com/shouldjs/spies) - small and dirty simple zero dependcies spies
* [`should-spies`](https://github.com/shouldjs/spies) - small and dirty simple zero dependencies spies


## Contributions
Expand Down
2 changes: 1 addition & 1 deletion lib/assertion.js
Expand Up @@ -54,7 +54,7 @@ Assertion.prototype = {
* Before calling this method need to fill Assertion#params object. This method usually called from other assertion methods.
* `Assertion#params` can contain such properties:
* * `operator` - required string containing description of this assertion
* * `obj` - optional replacement for this.obj, it usefull if you prepare more clear object then given
* * `obj` - optional replacement for this.obj, it is useful if you prepare more clear object then given
* * `message` - if this property filled with string any others will be ignored and this one used as assertion message
* * `expected` - any object used when you need to assert relation between given object and expected. Like given == expected (== is a relation)
* * `details` - additional string with details to generated message
Expand Down
6 changes: 3 additions & 3 deletions should.d.ts
Expand Up @@ -9,7 +9,7 @@ declare function should(obj: any): should.Assertion;
equal(actual: any, expected: any, message?: string): void;
notEqual(actual: any, expected: any, message?: string): void;
deepEqual(actual: any, expected: any, message?: string): void;
notDeepEqual(acutal: any, expected: any, message?: string): void;
notDeepEqual(actual: any, expected: any, message?: string): void;
strictEqual(actual: any, expected: any, message?: string): void;
notStrictEqual(actual: any, expected: any, message?: string): void;
Expand Down Expand Up @@ -43,7 +43,7 @@ declare namespace should {
function equal(actual: any, expected: any, message?: string): void;
function notEqual(actual: any, expected: any, message?: string): void;
function deepEqual(actual: any, expected: any, message?: string): void;
function notDeepEqual(acutal: any, expected: any, message?: string): void;
function notDeepEqual(actual: any, expected: any, message?: string): void;
function strictEqual(actual: any, expected: any, message?: string): void;
function notStrictEqual(actual: any, expected: any, message?: string): void;

Expand Down Expand Up @@ -119,7 +119,7 @@ declare namespace should {
throw(): this;
throw(msg: RegExp | string | Function, properties?: {}): this;
throw(properties: {}): this;
//TODO how to expess generators???
//TODO how to express generators???
throwError(): this;
throwError(msg: RegExp | string | Function, properties?: {}): this;
throwError(properties: {}): this;
Expand Down
10 changes: 5 additions & 5 deletions should.js
Expand Up @@ -134,15 +134,15 @@ TypeChecker.prototype = {
},

addTypeOf: function(type, res) {
return this.add(function(obj, tpeOf) {
if (tpeOf === type) {
return this.add(function(obj, typeOf) {
if (typeOf === type) {
return new Type(res);
}
});
},

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

0 comments on commit 79ec809

Please sign in to comment.