From 12f5521e782434a420c81ee4e18f9796fde17401 Mon Sep 17 00:00:00 2001 From: Sccttt Date: Wed, 8 May 2024 10:38:45 +0100 Subject: [PATCH] Fixes tests --- test/upload-restriction.test.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/upload-restriction.test.js b/test/upload-restriction.test.js index ee29f1f..5f3549c 100644 --- a/test/upload-restriction.test.js +++ b/test/upload-restriction.test.js @@ -101,7 +101,11 @@ backends().forEach(function (backend) { .expect('Content-Type', /json/) .end(function (err, res) { if (err) return done(err) - assert.strictEqual(res.body.message, 'Unsupported media type') + console.log(111, res) + assert.strictEqual( + res.body.message, + 'Forbidden type detected: image/jpeg; charset=binary' + ) done() }) }) @@ -115,7 +119,10 @@ backends().forEach(function (backend) { .expect(415) .end(function (err, res) { if (err) return done(err) - assert.strictEqual(res.body.message, 'Unsupported media type') + assert.strictEqual( + res.body.message, + 'Forbidden type detected: image/jpeg; charset=binary' + ) done() }) })