Node.js based forum software built for the modern web
fix(deps): update dependency sharp to v0.21.3 (#7267)
renovate[bot]8a64667ff8b1
diff --git a/install/package.json b/install/package.jsonindex 515d5e8d7e..ff763fbf7b 100644--- a/install/package.json+++ b/install/package.json@@ -110,7 +110,7 @@"sanitize-html": "^1.16.3","semver": "^5.4.1","serve-favicon": "^2.4.5",- "sharp": "0.21.2",+ "sharp": "0.21.3","sitemap": "^2.0.0","socket.io": "2.2.0","socket.io-adapter-cluster": "^1.0.1",diff --git a/test/uploads.js b/test/uploads.jsindex 077ce55704..578b99515d 100644--- a/test/uploads.js+++ b/test/uploads.js@@ -158,14 +158,21 @@ describe('Upload Controllers', function () {it('should fail if file is not an image', function (done) {file.isFileTypeAllowed(path.join(__dirname, '../test/files/notanimage.png'), function (err) {- assert.equal(err.message, 'Input file is missing or of an unsupported image format');+ assert.equal(err.message, 'Input file contains unsupported image format');done();});});it('should fail if file is not an image', function (done) {image.size(path.join(__dirname, '../test/files/notanimage.png'), function (err) {- assert.equal(err.message, 'Input file is missing or of an unsupported image format');+ assert.equal(err.message, 'Input file contains unsupported image format');+ done();+ });+ });++ it('should fail if file is missing', function (done) {+ image.size(path.join(__dirname, '../test/files/doesnotexist.png'), function (err) {+ assert.equal(err.message, 'Input file is missing');done();});});