Merge branch 'develop' into webp-avif

This commit is contained in:
Gaël Métais
2023-10-06 16:43:32 +02:00
committed by GitHub
11 changed files with 163 additions and 49 deletions
+10 -1
View File
@@ -160,9 +160,18 @@ describe('redownload', function() {
redownload.redownloadEntry(entry)
.then(function(newEntry) {
newEntry.weightCheck.bodySize.should.equal(4193);
newEntry.weightCheck.bodyBuffer.should.deep.equal(fileContent);
done();
// Opening the image in jimp to check if the format is good
var Jimp = require('jimp');
Jimp.read(newEntry.weightCheck.bodyBuffer, function(err, image) {
image.bitmap.width.should.equal(620);
image.bitmap.height.should.equal(104);
done(err);
});
})
.fail(function(err) {