Skip to content

Commit

Permalink
fix(types): optional failIfNoSecondInvocation parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyi-wang-sz committed Jul 11, 2022
1 parent 4933338 commit 40b7d8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ declare namespace jest {
* @param {Mock} mock
* @param {boolean} [failIfNoSecondInvocation=true]
*/
toHaveBeenCalledBefore(mock: jest.Mock, failIfNoSecondInvocation: boolean): R;
toHaveBeenCalledBefore(mock: jest.Mock, failIfNoSecondInvocation?: boolean): R;

/**
* Use `.toHaveBeenCalledAfter` when checking if a `Mock` was called after another `Mock`.
Expand All @@ -164,7 +164,7 @@ declare namespace jest {
* @param {Mock} mock
* @param {boolean} [failIfNoFirstInvocation=true]
*/
toHaveBeenCalledAfter(mock: jest.Mock, failIfNoFirstInvocation: boolean): R;
toHaveBeenCalledAfter(mock: jest.Mock, failIfNoFirstInvocation?: boolean): R;

/**
* Use `.toHaveBeenCalledOnce` to check if a `Mock` was called exactly one time.
Expand Down

0 comments on commit 40b7d8f

Please sign in to comment.