Skip to content

Commit

Permalink
Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sccttt committed May 8, 2024
1 parent cbaedf1 commit 12f5521
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/upload-restriction.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})
Expand All @@ -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()
})
})
Expand Down

0 comments on commit 12f5521

Please sign in to comment.