2
0
mirror of synced 2025-02-24 20:18:07 +00:00

Skip dist checks for node 6 to fix Travis CI.

This commit is contained in:
Richard Moore 2018-08-27 14:04:21 +02:00
parent ea5a56f0f0
commit 962f75038b
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -22,7 +22,16 @@ describe("Package Version", function() {
describe("Dist Build:", function() {
// No need (and can't) check this in the browser
if (fs.readFileSync == null) { return; }
if (fs.readFileSync == null) {
return;
}
// Node.js 6 does not seem to use the package-lock.json properly, so it does
// not correctly generate the uglified dist files.
var version = parseInt(process.version.match(/^v([0-9]+)/)[1]);
if (version < 8) {
return;
}
function test(filename) {
it("matches dist build - " + filename, function() {