diff --git a/test/middlewares.test.mjs b/test/middlewares.test.mjs index c994efc..f67e70d 100644 --- a/test/middlewares.test.mjs +++ b/test/middlewares.test.mjs @@ -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() {