From 7239faa5d166b7a241eb78c688d0c0191f72ed06 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Thu, 20 Jul 2017 17:47:49 +0100 Subject: [PATCH] Only fake Date with lolex Otherwise tests hang in Node.js 8.2.0, probably because lolex fakes `process.nextTick()`. --- test/ksuid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ksuid.js b/test/ksuid.js index 7d3c591..5772f1e 100644 --- a/test/ksuid.js +++ b/test/ksuid.js @@ -5,7 +5,7 @@ import lolex from 'lolex' import KSUID from '../' -const clock = lolex.install({now: 14e11}) +const clock = lolex.install({now: 14e11, toFake: ['Date']}) test.serial('created with the current time', t => { const x = KSUID.randomSync()