This commit is contained in:
antoinebrault
2019-02-03 23:09:34 -05:00
parent 50942f28c3
commit 1ba138ae20
+1 -1
View File
@@ -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);