Skip to content

Commit

Permalink
fix toHaveBeenCalledBefore/toHaveBeenCalledAfter mock param types
Browse files Browse the repository at this point in the history
  • Loading branch information
aheuermann committed Aug 11, 2020
1 parent 437d55a commit 6ff252a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/index.d.ts
Expand Up @@ -132,7 +132,7 @@ declare namespace jest {
*
* @param {Mock} mock
*/
toHaveBeenCalledBefore(mock: jest.Mock): R;
toHaveBeenCalledBefore(mock: jest.MockInstance): R;

/**
* Use `.toHaveBeenCalledAfter` when checking if a `Mock` was called after another `Mock`.
Expand All @@ -141,7 +141,7 @@ declare namespace jest {
*
* @param {Mock} mock
*/
toHaveBeenCalledAfter(mock: jest.Mock): R;
toHaveBeenCalledAfter(mock: jest.MockInstance): R;

/**
* Use `.toBeNumber` when checking if a value is a `Number`.
Expand Down Expand Up @@ -488,7 +488,7 @@ declare namespace jest {
*
* @param {Mock} mock
*/
toHaveBeenCalledBefore(mock: jest.Mock): any;
toHaveBeenCalledBefore(mock: jest.MockInstance<any, any>): any;

/**
* Use `.toHaveBeenCalledAfter` when checking if a `Mock` was called after another `Mock`.
Expand All @@ -497,7 +497,7 @@ declare namespace jest {
*
* @param {Mock} mock
*/
toHaveBeenCalledAfter(mock: jest.Mock): any;
toHaveBeenCalledAfter(mock: jest.MockInstance<any, any>): any;

/**
* Use `.toBeNumber` when checking if a value is a `Number`.
Expand Down

0 comments on commit 6ff252a

Please sign in to comment.