Skip to content

Commit

Permalink
chore: fix Node 12/14 regression from 'linting fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn committed Jun 1, 2022
1 parent a845e04 commit 44f33ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ function jestFakeTimersAreEnabled() {
// legacy timers
setTimeout._isMockFunction === true ||
// modern timers
Object.hasOwn(setTimeout, 'clock')
// eslint-disable-next-line prefer-object-has-own
Object.prototype.hasOwnProperty.call(setTimeout, 'clock')
)
}
// istanbul ignore next
Expand Down

0 comments on commit 44f33ae

Please sign in to comment.