Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into pr/testing-librar…
Browse files Browse the repository at this point in the history
…y#736-fallback-to-callback
  • Loading branch information
MatanBobi committed Jul 8, 2020
2 parents 181b2ee + 072f09e commit 1d8ced0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/flush-microtasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ export default function flushMicroTasks() {
jest.advanceTimersByTime(0)
resolve()
} else {
scheduleCallback(() => {
enqueueTask(() => {
resolve()
})
})
scheduleCallback(() => enqueueTask(resolve))
}
},
}
Expand Down

0 comments on commit 1d8ced0

Please sign in to comment.