fix: upload test for latest sharp

This commit is contained in:
Barış Soner Uşaklı
2022-04-19 13:17:03 -04:00
parent b9f9164308
commit 424db9ff37

View File

@@ -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();
});
});