From 04700beab3b40031fed65f0ee6a0957a941b9ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Thu, 18 Jun 2015 11:55:36 +0200 Subject: [PATCH] Fixing tests on Travis --- test/core/fileMinifierTest.js | 2 ++ test/core/gzipCompressorTest.js | 3 --- test/core/weightCheckerTest.js | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/core/fileMinifierTest.js b/test/core/fileMinifierTest.js index baa92f5..9c0d244 100644 --- a/test/core/fileMinifierTest.js +++ b/test/core/fileMinifierTest.js @@ -61,6 +61,8 @@ describe('fileMinifier', function() { }); it('should fail minifying an already minified JS', function(done) { + this.timeout(5000); + var fileContent = fs.readFileSync(path.resolve(__dirname, '../www/jquery1.8.3.js')); var fileSize = fileContent.length; diff --git a/test/core/gzipCompressorTest.js b/test/core/gzipCompressorTest.js index d69fcc7..a820bc3 100644 --- a/test/core/gzipCompressorTest.js +++ b/test/core/gzipCompressorTest.js @@ -79,9 +79,6 @@ describe('gzipCompressor', function() { gzipCompressor.compressFile(entry) .then(function(newEntry) { - delete newEntry.weightCheck.body; - delete newEntry.weightCheck.bodyAfterMinification; - console.log(newEntry.weightCheck); newEntry.weightCheck.should.have.a.property('afterCompression').that.is.below(fileSize); newEntry.weightCheck.should.have.a.property('afterOptimizationAndCompression').that.is.not.undefined; newEntry.weightCheck.should.have.a.property('afterOptimizationAndCompression').that.is.below(newEntry.weightCheck.afterCompression); diff --git a/test/core/weightCheckerTest.js b/test/core/weightCheckerTest.js index 61ddf9d..a524eae 100644 --- a/test/core/weightCheckerTest.js +++ b/test/core/weightCheckerTest.js @@ -6,6 +6,8 @@ var path = require('path'); describe('weightChecker', function() { it('should download a list of files', function(done) { + this.timeout(5000); + var requestsList = [ { method: 'GET',