mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: upload test for latest sharp
This commit is contained in:
@@ -230,7 +230,7 @@ describe('Upload Controllers', () => {
|
||||
|
||||
it('should fail if file is missing', (done) => {
|
||||
image.size(path.join(__dirname, '../test/files/doesnotexist.png'), (err) => {
|
||||
assert.strictEqual(err.message, 'Input file is missing');
|
||||
assert(err.message.startsWith('Input file is missing'));
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user