@types/sinon
Advanced tools
Comparing version 1.16.36 to 2.1.0
@@ -1,4 +0,4 @@ | ||
// Type definitions for Sinon 1.16.0 | ||
// Type definitions for Sinon 2.1.0 | ||
// Project: http://sinonjs.org/ | ||
// Definitions by: William Sears <https://github.com/mrbigdog2u> | ||
// Definitions by: William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -99,7 +99,12 @@ | ||
resetBehavior(): void; | ||
resetHistory(): void; | ||
returns(obj: any): SinonStub; | ||
returnsArg(index: number): SinonStub; | ||
returnsThis(): SinonStub; | ||
resolves(value: any): SinonStub; | ||
throws(type?: string): SinonStub; | ||
throws(obj: any): SinonStub; | ||
rejects(): SinonStub; | ||
rejects(errorType: string): SinonStub; | ||
rejects(value: any): SinonStub; | ||
callsArg(index: number): SinonStub; | ||
@@ -373,2 +378,3 @@ callThrough(): SinonStub; | ||
date: SinonMatcher; | ||
symbol: SinonMatcher; | ||
same(obj: any): SinonMatcher; | ||
@@ -426,8 +432,2 @@ typeOf(type: string): SinonMatcher; | ||
interface SinonStatic { | ||
config: SinonTestConfig; | ||
test(fn: (...args: any[]) => any): SinonTestWrapper; | ||
testCase(tests: any): any; | ||
} | ||
// Utility overridables | ||
@@ -437,3 +437,2 @@ interface SinonStatic { | ||
format(obj: any): string; | ||
log(message: string): void; | ||
restore(object: any): void; | ||
@@ -440,0 +439,0 @@ } |
{ | ||
"name": "@types/sinon", | ||
"version": "1.16.36", | ||
"version": "2.1.0", | ||
"description": "TypeScript definitions for Sinon", | ||
@@ -10,2 +10,6 @@ "license": "MIT", | ||
"url": "https://github.com/mrbigdog2u" | ||
}, | ||
{ | ||
"name": "Jonathan Little", | ||
"url": "https://github.com/rationull" | ||
} | ||
@@ -21,4 +25,4 @@ ], | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "d363ab97c35c6b4fab23ba5212f5e9a59207d9f4794290967ebb909df98add54", | ||
"typesPublisherContentHash": "d1a0299bfaab54ee3cad70e4e64bb180260214b19a838344295f527a46f7e9a2", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 20 Mar 2017 21:34:19 GMT | ||
* Last updated: Wed, 29 Mar 2017 18:32:03 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: sinon | ||
# Credits | ||
These definitions were written by William Sears <https://github.com/mrbigdog2u>. | ||
These definitions were written by William Sears <https://github.com/mrbigdog2u>, Jonathan Little <https://github.com/rationull>. |
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
17198