Skip to content

Commit

Permalink
change timeout type
Browse files Browse the repository at this point in the history
  • Loading branch information
Lei Chen authored and Lei Chen committed Sep 9, 2021
1 parent 62449f2 commit 43c377e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/helpers/createTimeoutController.ts
@@ -1,9 +1,8 @@
import { WaitOptions } from '../types'
import { jestFakeTimersAreEnabled } from './jestFakeTimersAreEnabled'
const DEFAULT_TIMEOUT = 1000

function createTimeoutController(
timeout: WaitOptions['timeout'] = DEFAULT_TIMEOUT,
timeout: number | false = DEFAULT_TIMEOUT,
allowFakeTimers: boolean
) {
let timeoutId: NodeJS.Timeout
Expand Down

0 comments on commit 43c377e

Please sign in to comment.