Skip to content

Commit

Permalink
version check
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschlinkert committed Dec 7, 2016
1 parent d2ad56e commit 2a83cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/es6/index.js
Expand Up @@ -98,4 +98,4 @@ module.exports = function() {
assert.equal(kindOf(float64array), 'float64array');
});
});
};
};
4 changes: 2 additions & 2 deletions test/test.js
Expand Up @@ -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];

Expand Down Expand Up @@ -85,7 +85,7 @@ describe('kindOf', function() {
});
});

if (major > 0 || minor > 11) {
if (major >= 5) {
require('./es6')();
}
});

0 comments on commit 2a83cac

Please sign in to comment.