Skip to content

Commit 44f33ae

Browse files
committed
chore: fix Node 12/14 regression from 'linting fixes'
1 parent a845e04 commit 44f33ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ function jestFakeTimersAreEnabled() {
55
// legacy timers
66
setTimeout._isMockFunction === true ||
77
// modern timers
8-
Object.hasOwn(setTimeout, 'clock')
8+
// eslint-disable-next-line prefer-object-has-own
9+
Object.prototype.hasOwnProperty.call(setTimeout, 'clock')
910
)
1011
}
1112
// istanbul ignore next

0 commit comments

Comments
 (0)