Add offenders to imageOptimization

This commit is contained in:
Gaël Métais
2015-06-01 16:52:50 +02:00
parent 1606cbab18
commit 9ccca3b33b
9 changed files with 85 additions and 47 deletions
+1 -2
View File
@@ -87,8 +87,7 @@ describe('weightChecker', function() {
data.toolsResults.weightChecker.offenders.should.have.a.property('imageOptimization');
data.toolsResults.weightChecker.offenders.imageOptimization.totalGain.should.be.above(0);
data.toolsResults.weightChecker.offenders.imageOptimization.byType.jpeg.requests.length.should.equal(1);
data.toolsResults.weightChecker.offenders.imageOptimization.byType.svg.requests.length.should.equal(1);
data.toolsResults.weightChecker.offenders.imageOptimization.images.length.should.equal(2);
done();
})