Skip to content

Commit

Permalink
Adjust flow type for accessType parameter in spyOn function (#5354)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl authored and SimenB committed Jan 20, 2018
1 parent b19f977 commit d82c1c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion types/Jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ export type Jest = {|
runTimersToTime(msToRun: number): void,
setMock(moduleName: string, moduleExports: any): Jest,
setTimeout(timeout: number): Jest,
spyOn(object: Object, methodName: string, accessType?: string): JestMockFn,
spyOn(
object: Object,
methodName: string,
accessType?: 'get' | 'set',
): JestMockFn,
unmock(moduleName: string): Jest,
useFakeTimers(): Jest,
useRealTimers(): Jest,
Expand Down

0 comments on commit d82c1c2

Please sign in to comment.