Skip to content

Commit

Permalink
chore: fix timers test
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed May 8, 2022
1 parent 199603d commit 9c597c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/core/test/timers.test.ts
Expand Up @@ -176,7 +176,7 @@ describe('FakeTimers', () => {
setTimeout,
}

const timers = new FakeTimers({ global, maxLoops: 100 })
const timers = new FakeTimers({ global, config: { loopLimit: 100 } })

timers.useFakeTimers()

Expand Down Expand Up @@ -306,7 +306,7 @@ describe('FakeTimers', () => {

it('throws before allowing infinite recursion', () => {
const global = { Date: FakeDate, clearTimeout, process, setTimeout }
const timers = new FakeTimers({ global, maxLoops: 100 })
const timers = new FakeTimers({ global, config: { loopLimit: 100 } })
timers.useFakeTimers()

global.setTimeout(function infinitelyRecursingCallback() {
Expand Down

0 comments on commit 9c597c8

Please sign in to comment.