Skip to content

Commit

Permalink
skip test using nock method broken in node 8
Browse files Browse the repository at this point in the history
  • Loading branch information
gregbanks committed Jun 6, 2017
1 parent e77f2de commit 9a9d595
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/HttpTestTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ var o = require('@carbon-io/atom').o(module)

var HttpTest = require('../lib/HttpTest')

var NODE_MAJOR_VERSION = parseInt(process.version.match(/v(\d+)\.\d+\.\d+/)[1])

/******************************************************************************
* HttpTestTests
*/
Expand Down Expand Up @@ -482,6 +484,9 @@ __(function() {
{
name: 'headersTest',
setup: function() {
if (NODE_MAJOR_VERSION > 6) {
throw new testtube.errors.SkipTestError('nock.matchHeaders broken in node 8 (https://github.com/node-nock/nock/issues/925)')
}
this.scope = nock(baseUrl).get(path)
.matchHeader('foo', 'bar')
.reply(200)
Expand Down

0 comments on commit 9a9d595

Please sign in to comment.