Test: Update tests on formidable errors
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
This commit is contained in:
parent
74771d92cf
commit
95e6c2dcac
1 changed files with 4 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue