Skip to content

Commit

Permalink
Bump lolex and sinon (#1887)
Browse files Browse the repository at this point in the history
Lolex was renamed.
  • Loading branch information
paulmelnikow committed Feb 10, 2020
1 parent 9fdeeca commit 5eaa5f5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
19 changes: 14 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -42,7 +42,7 @@
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0",
"got": "^9.6.0",
"lolex": "^5.0.0",
"@sinonjs/fake-timers": "^6.0.0",
"mocha": "^7.0.1",
"npm-run-all": "^4.1.5",
"nyc": "^15.0.0",
Expand All @@ -51,7 +51,7 @@
"request": "^2.83.0",
"rimraf": "^3.0.0",
"semantic-release": "^17.0.2",
"sinon": "^8.0.0",
"sinon": "^8.1.1",
"sinon-chai": "^3.3.0",
"superagent": "^5.0.2",
"tap": "14.6.1"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_fake_timer.js
Expand Up @@ -3,15 +3,15 @@
const { expect } = require('chai')
const { test } = require('tap')
const request = require('request')
const lolex = require('lolex')
const fakeTimers = require('@sinonjs/fake-timers')
const nock = require('..')

require('./cleanup_after_each')()
require('./setup')

// https://github.com/nock/nock/issues/1334
test('one function returns successfully when fake timer is enabled', t => {
const clock = lolex.install()
const clock = fakeTimers.install()
nock('http://example.test')
.get('/')
.reply(200)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_reply_headers.js
Expand Up @@ -6,7 +6,7 @@
const { IncomingMessage } = require('http')
const { expect } = require('chai')
const sinon = require('sinon')
const lolex = require('lolex')
const fakeTimers = require('@sinonjs/fake-timers')
const nock = require('..')
const got = require('./got_client')

Expand Down Expand Up @@ -354,7 +354,7 @@ describe('`replyDate()`', () => {
describe('with mock timers', () => {
let clock
beforeEach(() => {
clock = lolex.install()
clock = fakeTimers.install()
})
afterEach(() => {
if (clock) {
Expand Down

0 comments on commit 5eaa5f5

Please sign in to comment.