Fixing tests on Travis
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user