Fix bug with SVG minification+compression

This commit is contained in:
Gaël Métais
2015-06-18 23:06:57 +02:00
parent 113665139a
commit d4815e855e
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ describe('fileMinifier', function() {
.then(function(newEntry) {
newEntry.weightCheck.should.have.a.property('isOptimized').that.equals(false);
newEntry.weightCheck.should.have.a.property('optimized').that.is.below(fileSize);
newEntry.weightCheck.should.have.a.property('bodyAfterOptimization');
newEntry.weightCheck.should.have.a.property('bodyAfterOptimization').that.is.a('string');
done();
})
@@ -193,7 +193,7 @@ describe('fileMinifier', function() {
.then(function(newEntry) {
newEntry.weightCheck.should.have.a.property('isOptimized').that.equals(false);
newEntry.weightCheck.should.have.a.property('optimized').that.is.below(fileSize);
newEntry.weightCheck.should.have.a.property('bodyAfterOptimization');
newEntry.weightCheck.should.have.a.property('bodyAfterOptimization').that.is.a('string');
done();
})
+1 -1
View File
@@ -208,7 +208,7 @@ describe('imageOptimizer', function() {
newEntry.weightCheck.should.have.a.property('isOptimized').that.equals(false);
newEntry.weightCheck.should.have.a.property('lossless').that.is.below(fileSize);
newEntry.weightCheck.should.have.a.property('optimized').that.equals(newEntry.weightCheck.lossless);
newEntry.weightCheck.should.have.a.property('bodyAfterOptimization');
newEntry.weightCheck.should.have.a.property('bodyAfterOptimization').that.is.a('string');
done();
})