mirror of
https://github.com/lovell/sharp.git
synced 2025-07-10 19:10:14 +02:00
Tests: skip empty Buffer test when *magick supported
This commit is contained in:
parent
25b964e3df
commit
ac4070cb49
@ -302,7 +302,7 @@ describe('Input/output', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('Fail when input is empty Buffer', function (done) {
|
it('Fail when input is empty Buffer', function (done) {
|
||||||
if (process.platform === 'freebsd') return this.skip(); // can be removed with libvips 8.10.0+
|
if (sharp.format.magick.input.buffer) return this.skip(); // can be removed with libvips 8.10.0+
|
||||||
sharp(Buffer.alloc(0)).toBuffer().then(function () {
|
sharp(Buffer.alloc(0)).toBuffer().then(function () {
|
||||||
assert(false);
|
assert(false);
|
||||||
done();
|
done();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user