[sinon] add spy.resetHistory() (#22807)

This commit is contained in:
Flarna 2018-01-11 00:26:30 +01:00 committed by Ryan Cavanaugh
parent 5165332409
commit b0fee33bf0
2 changed files with 3 additions and 0 deletions

View File

@ -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;
}

View File

@ -157,6 +157,7 @@ function testSymbolMatch() {
function testResetHistory() {
sinon.stub().resetHistory();
sinon.spy().resetHistory();
}
function testUsingPromises() {