Skip to content

Node.js based forum software built for the modern web

test: sharp invalid png

Barış Soner Uşaklı1ea10eff1c3b
diff --git a/test/uploads.js b/test/uploads.js
index 4fc0e41a64..1e5b3d19e3 100644
--- a/test/uploads.js
+++ b/test/uploads.js
@@ -205,7 +205,7 @@ describe('Upload Controllers', () => {
const { response, body } = await helpers.uploadFile(`${nconf.get('url')}/api/post/upload`, path.join(__dirname, '../test/files/brokenimage.png'), {}, jar, csrf_token);
assert.strictEqual(response.statusCode, 500);
assert(body && body.status && body.status.message);
- assert.strictEqual(body.status.message, 'Input file contains unsupported image format');
+ assert.strictEqual(body.status.message, 'pngload_buffer: end of stream');
});
it('should fail if file is not an image', (done) => {