diff --git a/tests/test_common.js b/tests/test_common.js index a20ed7a9b..b45b6654c 100644 --- a/tests/test_common.js +++ b/tests/test_common.js @@ -17,6 +17,7 @@ const common = require('../lib/common') const matchBody = require('../lib/match_body') const sinon = require('sinon') const nock = require('..') +const { expect } = require('chai') require('./cleanup_after_each')() @@ -531,6 +532,7 @@ test('correct node behavior', t => { res.on('end', () => { expect(req).to.have.been.notCalled() scope.done() + http.request = origHttpReq; t.end() }) })