Test: Update tests on formidable errors
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
Jonatan Nilsson 2023-01-26 09:26:12 +00:00
parent 74771d92cf
commit 95e6c2dcac

View file

@ -615,7 +615,10 @@ t.describe('#FormidableHandler()', function() {
let err = await assert.isRejected(handler(ctx))
assert.strictEqual(err, assertError)
assert.notStrictEqual(err, assertError)
assert.ok(err instanceof HttpError)
assert.strictEqual(err.message, assertError.message)
assert.strictEqual(err.status, 400)
})
t.test('should throw rename error if rename fails', async function() {