From d5b8b95a2d65c8b1d3211cc71ebf3fdb4599db8d Mon Sep 17 00:00:00 2001 From: Matt York Date: Fri, 20 Jun 2014 18:35:25 -0700 Subject: [PATCH] Add onCall(n) and friends to SinonStub definition These were added in Sinon 1.8, and the definition claims to be Sinon 1.8.1 From documentation: "As of Sinon version 1.8, you can use the onCall method to make a stub respond differently on consecutive calls." http://sinonjs.org/docs/ --- sinon/sinon.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sinon/sinon.d.ts b/sinon/sinon.d.ts index f8bed61b03..4b86566619 100644 --- a/sinon/sinon.d.ts +++ b/sinon/sinon.d.ts @@ -101,6 +101,10 @@ interface SinonStub extends SinonSpy { callsArgOnAsync(index: number, context: any): SinonStub; callsArgWithAsync(index: number, ...args: any[]): SinonStub; callsArgOnWithAsync(index: number, context: any, ...args: any[]): SinonStub; + onCall(n: number): SinonStub; + onFirstCall(): SinonStub; + onSecondCall(): SinonStub; + onThirdCall(): SinonStub; yields(...args: any[]): SinonStub; yieldsOn(context: any, ...args: any[]): SinonStub; yieldsTo(property: string, ...args: any[]): SinonStub;