Skip to content

Commit

Permalink
remove type param
Browse files Browse the repository at this point in the history
  • Loading branch information
royhadad committed Sep 18, 2022
1 parent 2c9dac7 commit e73f878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-types/__typetests__/expect.test.ts
Expand Up @@ -222,7 +222,7 @@ expectType<void>(expect(jest.fn()).toHaveBeenCalledWith(123, 'value'));
// type inference for "CalledWith" matchers parameters
const jestFnWithParams = jest.fn((a: string, b: number) => {});
expectType<void>(expect(jestFnWithParams).toHaveBeenCalledWith('value', 123));
expectError<void>(expect(jestFnWithParams).toHaveBeenCalledWith(123, 'value'));
expectError(expect(jestFnWithParams).toHaveBeenCalledWith(123, 'value'));

expectType<void>(expect(jest.fn()).lastCalledWith());
expectType<void>(expect(jest.fn()).lastCalledWith('value'));
Expand Down

0 comments on commit e73f878

Please sign in to comment.