Skip to content

Commit

Permalink
Only fake Date with lolex
Browse files Browse the repository at this point in the history
Otherwise tests hang in Node.js 8.2.0, probably because lolex fakes
`process.nextTick()`.
  • Loading branch information
novemberborn committed Jul 20, 2017
1 parent c18b85b commit 7239faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ksuid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7239faa

Please sign in to comment.