mirror of
https://github.com/lovell/sharp.git
synced 2025-07-11 11:30:15 +02:00
Add WebP availability check to test added in a5bd68e
This commit is contained in:
parent
a5bd68ef8c
commit
9ddc817a09
@ -128,6 +128,7 @@ describe('Resize dimensions', function() {
|
||||
done();
|
||||
});
|
||||
|
||||
if (sharp.format.webp.output.buffer) {
|
||||
it('WebP shrink-on-load rounds to zero, ensure recalculation is correct', function(done) {
|
||||
sharp(fixtures.inputJpg)
|
||||
.resize(1080, 607)
|
||||
@ -148,6 +149,7 @@ describe('Resize dimensions', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (sharp.format.tiff.input.file) {
|
||||
it('TIFF embed known to cause rounding errors', function(done) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user