From 2a83cac486e56abeb4865aa4a54f2a0351112e8a Mon Sep 17 00:00:00 2001 From: jonschlinkert Date: Wed, 7 Dec 2016 02:02:59 -0500 Subject: [PATCH] version check --- test/es6/index.js | 2 +- test/test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/es6/index.js b/test/es6/index.js index 7fb3097..96bc93c 100644 --- a/test/es6/index.js +++ b/test/es6/index.js @@ -98,4 +98,4 @@ module.exports = function() { assert.equal(kindOf(float64array), 'float64array'); }); }); -}; \ No newline at end of file +}; diff --git a/test/test.js b/test/test.js index 03e1ebd..fa70bf7 100644 --- a/test/test.js +++ b/test/test.js @@ -4,7 +4,7 @@ require('mocha'); var assert = require('assert'); var kindOf = require('..'); -var version = process.version.match(/^.(\d+)\.(\d+)/); +var version = process.version.match(/^v(\d+)\.(\d+)\.(\d+)/); var major = version[1]; var minor = version[2]; @@ -85,7 +85,7 @@ describe('kindOf', function() { }); }); - if (major > 0 || minor > 11) { + if (major >= 5) { require('./es6')(); } });