From ac4070cb49dca5da1e87ffca26d78e57915f8498 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Thu, 4 Jun 2020 20:07:30 +0100 Subject: [PATCH] Tests: skip empty Buffer test when *magick supported --- test/unit/io.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/io.js b/test/unit/io.js index cb186d59..305f11c3 100644 --- a/test/unit/io.js +++ b/test/unit/io.js @@ -302,7 +302,7 @@ describe('Input/output', function () { }); 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 () { assert(false); done();