text: fix timer.test it node 9/10

This commit is contained in:
Clark Du 2019-06-12 10:03:37 +01:00
parent b809d58dc8
commit 2633e0c2b8

View File

@ -94,7 +94,7 @@ describe('util: timer', () => {
process.hrtime = hrtime process.hrtime = hrtime
}) })
if (BigInt) { if (typeof BigInt !== 'undefined') {
test('should calculate duration with bigint hrtime', () => { test('should calculate duration with bigint hrtime', () => {
const timer = new Timer() const timer = new Timer()
const hrtime = process.hrtime const hrtime = process.hrtime