Skip to content

Commit

Permalink
I don't know how istanbul works
Browse files Browse the repository at this point in the history
and I don't care
  • Loading branch information
eps1lon committed Feb 19, 2021
1 parent bb44f29 commit 8867abe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function runWithRealTimers(callback) {
return runWithJestRealTimers(callback).callbackReturnValue
}

// istanbul ignore next
return callback()
}

Expand Down Expand Up @@ -46,6 +47,8 @@ function jestFakeTimersAreEnabled() {
if (typeof jest !== 'undefined') {
return runWithJestRealTimers(() => {}).usedFakeTimers
}

// istanbul ignore next
return false
}

Expand Down

0 comments on commit 8867abe

Please sign in to comment.