Skip to content

Commit

Permalink
nock#1836 fixes expected Node behaviour for http.get
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethaasan committed Jan 9, 2020
1 parent ed81a90 commit 6a43958
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_common.js
Expand Up @@ -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')()

Expand Down Expand Up @@ -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()
})
})
Expand Down

0 comments on commit 6a43958

Please sign in to comment.