From 44f33ae22b3f84c85d7387d4b92861dc94457a5e Mon Sep 17 00:00:00 2001 From: Corbin Crutchley Date: Tue, 31 May 2022 23:59:40 -0700 Subject: [PATCH] chore: fix Node 12/14 regression from 'linting fixes' --- src/helpers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers.js b/src/helpers.js index d70cf65..c98d8f5 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -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