Skip to content

Commit bb44f29

Browse files
committed
No implicit return
1 parent a29bd91 commit bb44f29

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/helpers.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,13 @@ function runWithJestRealTimers(callback) {
4141
}
4242
}
4343

44-
const jestFakeTimersAreEnabled = () =>
45-
typeof jest !== 'undefined' && runWithJestRealTimers(() => {}).usedFakeTimers
44+
function jestFakeTimersAreEnabled() {
45+
// istanbul ignore else
46+
if (typeof jest !== 'undefined') {
47+
return runWithJestRealTimers(() => {}).usedFakeTimers
48+
}
49+
return false
50+
}
4651

4752
// we only run our tests in node, and setImmediate is supported in node.
4853
// istanbul ignore next

0 commit comments

Comments
 (0)