Merge branch 'master' into develop

This commit is contained in:
Barış Soner Uşaklı
2025-08-25 12:17:23 -04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@
"satori": "0.16.2",
"semver": "7.7.2",
"serve-favicon": "2.5.1",
"sharp": "0.32.6",
"sharp": "0.34.3",
"sitemap": "8.0.0",
"socket.io": "4.8.1",
"socket.io-client": "4.8.1",

View File

@@ -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) => {