migrated to FakeTimers (#1221)

This commit is contained in:
Alexander Mykolaichuk
2020-06-08 09:37:29 +02:00
committed by delvedor
parent 072931f7af
commit 93cf8aa3c0
5 changed files with 12 additions and 13 deletions

View File

@ -6,7 +6,7 @@
const { test } = require('tap')
const { URL } = require('url')
const lolex = require('lolex')
const FakeTimers = require('@sinonjs/fake-timers')
const { createGunzip } = require('zlib')
const os = require('os')
const intoStream = require('into-stream')
@ -1072,7 +1072,7 @@ test('sniff', t => {
t.test('sniffInterval', t => {
t.plan(6)
const clock = lolex.install({ toFake: ['Date'] })
const clock = FakeTimers.install({ toFake: ['Date'] })
t.teardown(() => clock.uninstall())
class MyTransport extends Transport {