Skip to content

Commit

Permalink
test: skipping request next tests in old node.js versions
Browse files Browse the repository at this point in the history
  • Loading branch information
analog-nico committed Jul 8, 2016
1 parent 536bc91 commit 1de5a9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"gulp-eslint": "~2.1.0",
"gulp-istanbul": "~1.0.0",
"gulp-mocha": "~2.2.0",
"node-version": "~1.0.0",
"publish-please": "~2.1.4",
"request": "^2.34.0",
"rimraf": "~2.5.3",
Expand Down
5 changes: 5 additions & 0 deletions test/spec/request-next.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ var api = require('@request/api'),
Bluebird = require('bluebird'),
configure = require('../../configure/request-next.js'),
errors = require('../../errors'),
nodeVersion = require('node-version'),
startServer = require('../fixtures/server.js');


describe('Promise-Core for Request@next', function () {

if (Number(nodeVersion.major) < 4) {
return; // request@next uses ES6 and thus wouldn't run on old node.js versions
}

describe('during configuration', function () {

it('should verify the options', function () {
Expand Down

0 comments on commit 1de5a9c

Please sign in to comment.