mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Fixed the jsmockito verify() functions signature so that the verifier argument is now optional.
This commit is contained in:
1 parent
b10e5ade29
commit
71998a4c86
2 files changed
+4
No files matched your search
@@ -33,6 +33,7 @@ function test_JsMockito_when() {
|
||||
}
|
||||
|
||||
function test_JsMockito_verify() {
|
||||
JsMockito.verify(new TestClass()).test();
|
||||
JsMockito.verify(new TestClass(), new TestVerifier()).test();
|
||||
}
|
||||
|
||||
@@ -129,6 +130,7 @@ function test_when() {
|
||||
}
|
||||
|
||||
function test_verify() {
|
||||
verify(new TestClass()).test();
|
||||
verify(new TestClass(), new TestVerifier()).test();
|
||||
}
|
||||
|
||||
|
||||
Vendored
+2
@@ -378,6 +378,7 @@ declare module JsMockito {
|
||||
* @param verifier Optional JsMockito.Verifier instance (default: JsMockito.Verifiers.once())
|
||||
* @return {T} A verifier on which the method or function to be verified can be invoked
|
||||
*/
|
||||
export function verify<T>(mock: T): T;
|
||||
export function verify<T>(mock: T, verifier: Verifier): T;
|
||||
|
||||
/**
|
||||
@@ -587,6 +588,7 @@ declare function when<T>(mock: T): T;
|
||||
* @param verifier Optional JsMockito.Verifier instance (default: JsMockito.Verifiers.once())
|
||||
* @return {T} A verifier on which the method or function to be verified can be invoked
|
||||
*/
|
||||
declare function verify<T>(mock: T): T;
|
||||
declare function verify<T>(mock: T, verifier: JsMockito.Verifier): T;
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user