Put back overzealous code removal from 2470e5c

This commit is contained in:
Lovell Fuller 2016-10-26 12:12:38 +01:00
parent cbdbbe535a
commit de09577342

View File

@ -1064,6 +1064,10 @@ describe('Input/output', function () {
.toFormat('jpeg') .toFormat('jpeg')
.toBuffer(function (err, data, info) { .toBuffer(function (err, data, info) {
assert.strictEqual(err.message.indexOf('memory area too small') > 0, true); 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}}) const goodPipeline = sharp(null, {raw: {width: 840, height: 472, channels: 3}})
.toFormat('jpeg') .toFormat('jpeg')
.toBuffer(function (err, data, info) { .toBuffer(function (err, data, info) {