mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
fix(sinon): stub.callsFake should accept parameters
This commit is contained in:
Vendored
+1
-1
@@ -524,7 +524,7 @@ declare namespace Sinon {
|
||||
* Makes the stub call the provided @param func when invoked.
|
||||
* @param func
|
||||
*/
|
||||
callsFake(func: () => TReturnValue): SinonStub<TArgs, TReturnValue>;
|
||||
callsFake(func: (...args: any[]) => TReturnValue): SinonStub<TArgs, TReturnValue>;
|
||||
/**
|
||||
* Replaces a new getter for this stub.
|
||||
*/
|
||||
|
||||
@@ -422,7 +422,7 @@ function testStub() {
|
||||
stub.callsArgOnAsync(1, instance);
|
||||
stub.callsArgWithAsync(1, 'a', 2);
|
||||
stub.callsArgOnWithAsync(1, instance, 'a', 2);
|
||||
stub.callsFake(() => { });
|
||||
stub.callsFake((s1, s2, s3) => { });
|
||||
stub.get(() => true);
|
||||
stub.set((v) => { });
|
||||
stub.onCall(1).returns(true);
|
||||
|
||||
Reference in New Issue
Block a user