Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebrault committed Feb 4, 2019
1 parent 50942f2 commit 1ba138a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/jest/jest-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ const spy3Mock = spy3
.mockRejectedValueOnce("value");

let spy4: jest.SpyInstance;
// $ExpectType SpyInstance<string, [void]>
// $ExpectType SpyInstance<string, []>
spy4 = jest.spyOn(spiedTarget, "returnsString");
// compiles because spy4 is declared as jest.SpyInstance<any, any>
spy4.mockImplementation(() => 1);
Expand Down

0 comments on commit 1ba138a

Please sign in to comment.