From de09577342d48437c9fde56a453f3a21c587f421 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Wed, 26 Oct 2016 12:12:38 +0100 Subject: [PATCH] Put back overzealous code removal from 2470e5c --- test/unit/io.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/io.js b/test/unit/io.js index 981b174e..c380494b 100644 --- a/test/unit/io.js +++ b/test/unit/io.js @@ -1064,6 +1064,10 @@ describe('Input/output', function () { .toFormat('jpeg') .toBuffer(function (err, data, info) { assert.strictEqual(err.message.indexOf('memory area too small') > 0, true); + const readable = fs.createReadStream(fixtures.inputJPGBig); + const inPipeline = sharp() + .resize(840, 472) + .raw(); const goodPipeline = sharp(null, {raw: {width: 840, height: 472, channels: 3}}) .toFormat('jpeg') .toBuffer(function (err, data, info) {