From 424db9ff375f09c855f22bd44b42ef3019889faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 19 Apr 2022 13:17:03 -0400 Subject: [PATCH] fix: upload test for latest sharp --- test/uploads.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/uploads.js b/test/uploads.js index f299cba39e..33e55be9a0 100644 --- a/test/uploads.js +++ b/test/uploads.js @@ -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(); }); });