Fixing tests on Travis

This commit is contained in:
Gaël Métais
2015-06-18 11:55:36 +02:00
parent 0d3d6c88e4
commit 04700beab3
3 changed files with 4 additions and 3 deletions
-3
View File
@@ -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);