@types/sinon
Advanced tools
Comparing version 2.2.1 to 2.2.2
// Type definitions for Sinon 2.2 | ||
// Project: http://sinonjs.org/ | ||
// Definitions by: William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>, Lukas Spieß <https://github.con/lumaxis> | ||
// Definitions by: William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>, Lukas Spieß <https://github.com/lumaxis>, Nico Jansen <https://github.com/nicojs> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// sinon uses DOM dependencies which are absent in browserless envoronment like node.js | ||
// sinon uses DOM dependencies which are absent in browser-less environment like node.js | ||
// to avoid compiler errors this monkey patch is used | ||
@@ -366,2 +366,43 @@ // see more details in https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11351 | ||
interface SinonArrayMatcher extends SinonMatcher { | ||
/** | ||
* Requires an Array to be deep equal another one. | ||
*/ | ||
deepEquals(expected: any[]): SinonMatcher; | ||
/** | ||
* Requires an Array to start with the same values as another one. | ||
*/ | ||
startsWith(expected: any[]): SinonMatcher; | ||
/** | ||
* Requires an Array to end with the same values as another one. | ||
*/ | ||
endsWith(expected: any[]): SinonMatcher; | ||
/** | ||
* Requires an Array to contain each one of the values the given array has. | ||
*/ | ||
contains(expected: any[]): SinonMatcher; | ||
} | ||
interface SinonMapMatcher extends SinonMatcher { | ||
/** | ||
* Requires a Map to be deep equal another one. | ||
*/ | ||
deepEquals(expected: Map<any, any>): SinonMatcher; | ||
/** | ||
* Requires a Map to contain each one of the items the given map has. | ||
*/ | ||
contains(expected: Map<any, any>): SinonMatcher; | ||
} | ||
interface SinonSetMatcher extends SinonMatcher { | ||
/** | ||
* Requires a Set to be deep equal another one. | ||
*/ | ||
deepEquals(expected: Set<any>): SinonMatcher; | ||
/** | ||
* Requires a Set to contain each one of the items the given set has. | ||
*/ | ||
contains(expected: Set<any>): SinonMatcher; | ||
} | ||
interface SinonMatch { | ||
@@ -382,3 +423,14 @@ (value: number): SinonMatcher; | ||
func: SinonMatcher; | ||
array: SinonMatcher; | ||
/** | ||
* Requires the value to be a Map. | ||
*/ | ||
map: SinonMapMatcher; | ||
/** | ||
* Requires the value to be a Set. | ||
*/ | ||
set: SinonSetMatcher; | ||
/** | ||
* Requires the value to be an Array. | ||
*/ | ||
array: SinonArrayMatcher; | ||
regexp: SinonMatcher; | ||
@@ -385,0 +437,0 @@ date: SinonMatcher; |
{ | ||
"name": "@types/sinon", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "TypeScript definitions for Sinon", | ||
@@ -17,3 +17,7 @@ "license": "MIT", | ||
"name": "Lukas Spieß", | ||
"url": "https://github.con/lumaxis" | ||
"url": "https://github.com/lumaxis" | ||
}, | ||
{ | ||
"name": "Nico Jansen", | ||
"url": "https://github.com/nicojs" | ||
} | ||
@@ -29,4 +33,4 @@ ], | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "883db8f7f2661f08a629e547041f72077a350dd28f24e0b090feea964d420618", | ||
"typesPublisherContentHash": "d49fe374bb84617dd440199f0a9290bbfcfeae020346443d65d757fc83e61b87", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 04 May 2017 17:04:38 GMT | ||
* Last updated: Tue, 16 May 2017 20:45:07 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: sinon | ||
# Credits | ||
These definitions were written by William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>, Lukas Spieß <https://github.con/lumaxis>. | ||
These definitions were written by William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>, Lukas Spieß <https://github.com/lumaxis>, Nico Jansen <https://github.com/nicojs>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21065
457