Skip dist checks for node 6 to fix Travis CI.
This commit is contained in:
parent
ea5a56f0f0
commit
962f75038b
@ -22,7 +22,16 @@ describe("Package Version", function() {
|
|||||||
describe("Dist Build:", function() {
|
describe("Dist Build:", function() {
|
||||||
|
|
||||||
// No need (and can't) check this in the browser
|
// 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) {
|
function test(filename) {
|
||||||
it("matches dist build - " + filename, function() {
|
it("matches dist build - " + filename, function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user