Skip to content

Commit

Permalink
chore: refactor flush-microtasks.js (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Jul 6, 2020
1 parent 47e6da6 commit 072f09e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/flush-microtasks.js
Expand Up @@ -85,11 +85,7 @@ export default function flushMicroTasks() {
jest.advanceTimersByTime(0)
resolve()
} else {
scheduleCallback(() => {
enqueueTask(() => {
resolve()
})
})
scheduleCallback(() => enqueueTask(resolve))
}
},
}
Expand Down

0 comments on commit 072f09e

Please sign in to comment.