mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 08:31:22 +01:00
Merge branch 'master' into develop
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user