Skip to content

Commit ef0ed8a

Browse files
authored
🤖 Merge PR #60952 sinon: add comment about zero-based index of spy call by @bmish
1 parent 0765a69 commit ef0ed8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎types/sinon/index.d.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ declare namespace Sinon {
332332
/**
333333
* Returns the nth call.
334334
* Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
335-
* @param n Zero based index of the spy call.
335+
* @param n Zero-based index of the spy call.
336336
*/
337337
getCall(n: number): SinonSpyCall<TArgs, TReturnValue>;
338338
/**
@@ -569,7 +569,7 @@ declare namespace Sinon {
569569
* Defines the behavior of the stub on the @param n call. Useful for testing sequential interactions.
570570
* There are methods onFirstCall, onSecondCall,onThirdCall to make stub definitions read more naturally.
571571
* onCall can be combined with all of the behavior defining methods in this section. In particular, it can be used together with withArgs.
572-
* @param n
572+
* @param n Zero-based index of the spy call.
573573
*/
574574
onCall(n: number): SinonStub<TArgs, TReturnValue>;
575575
/**

0 commit comments

Comments
 (0)