From 1199ed87a867e91624a1236629b8c5263728c2b7 Mon Sep 17 00:00:00 2001 From: kbariotis Date: Tue, 22 Dec 2020 09:00:16 +0200 Subject: [PATCH] add ocmment --- tests/CustomError.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CustomError.spec.ts b/tests/CustomError.spec.ts index 6413f11..ce764fd 100644 --- a/tests/CustomError.spec.ts +++ b/tests/CustomError.spec.ts @@ -38,7 +38,7 @@ try { // The response error code should have been set assert.strictEqual(err.statusCode, 400); - // The customer error code should have been set + // Serializes JSON structure assert.strictEqual(err.errorCode, 4000); assert.strictEqual(err.toJSON().message, "It went bad!"); assert.strictEqual(err.toJSON().statusCode, 400);