From 2633e0c2b85d2a25564f338517dbd5f31792f00a Mon Sep 17 00:00:00 2001 From: Clark Du Date: Wed, 12 Jun 2019 10:03:37 +0100 Subject: [PATCH] text: fix timer.test it node 9/10 --- packages/utils/test/timer.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/test/timer.test.js b/packages/utils/test/timer.test.js index 2a89335e8e..fb59344dce 100644 --- a/packages/utils/test/timer.test.js +++ b/packages/utils/test/timer.test.js @@ -94,7 +94,7 @@ describe('util: timer', () => { process.hrtime = hrtime }) - if (BigInt) { + if (typeof BigInt !== 'undefined') { test('should calculate duration with bigint hrtime', () => { const timer = new Timer() const hrtime = process.hrtime