Skip to content

Commit

Permalink
add ocmment
Browse files Browse the repository at this point in the history
  • Loading branch information
kbariotis committed Dec 22, 2020
1 parent b2d1842 commit 1199ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CustomError.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1199ed8

Please sign in to comment.