From 1ea10eff1c3b678c21a52a21bed183b8d65a8da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 25 Aug 2025 12:08:55 -0400 Subject: [PATCH] test: sharp invalid png --- test/uploads.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {