Skip to content

Commit

Permalink
Fix customEqualityTesters TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Dec 1, 2022
1 parent 7bdcded commit 144f351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/expect/src/__tests__/customEqualityTesters.test.ts
Expand Up @@ -138,7 +138,7 @@ describe('without custom equality testers', () => {
});

it('spy matchers do not pass different special objects', () => {
const mockFn = jest.fn(() => specialReturn1);
const mockFn: (...args: Array<any>) => any = jest.fn(() => specialReturn1);
mockFn(...testArgs);

expect(mockFn).not.toHaveBeenCalledWith(...expectedArgs);
Expand Down Expand Up @@ -201,7 +201,7 @@ describe('with custom equality testers', () => {
});

it('spy matchers pass different special objects', () => {
const mockFn = jest.fn(() => specialReturn1);
const mockFn: (...args: Array<any>) => any = jest.fn(() => specialReturn1);
mockFn(...testArgs);

expect(mockFn).toHaveBeenCalledWith(...expectedArgs);
Expand Down

0 comments on commit 144f351

Please sign in to comment.