mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[sinon] add spy.resetHistory() (#22807)
This commit is contained in:
parent
5165332409
commit
b0fee33bf0
2
types/sinon/index.d.ts
vendored
2
types/sinon/index.d.ts
vendored
@ -87,7 +87,9 @@ declare namespace Sinon {
|
||||
invokeCallback(...args: any[]): void;
|
||||
getCall(n: number): SinonSpyCall;
|
||||
getCalls(): SinonSpyCall[];
|
||||
/// @deprecated Use resetHistory() instead
|
||||
reset(): void;
|
||||
resetHistory(): void;
|
||||
printf(format: string, ...args: any[]): string;
|
||||
restore(): void;
|
||||
}
|
||||
|
||||
@ -157,6 +157,7 @@ function testSymbolMatch() {
|
||||
|
||||
function testResetHistory() {
|
||||
sinon.stub().resetHistory();
|
||||
sinon.spy().resetHistory();
|
||||
}
|
||||
|
||||
function testUsingPromises() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user