Skip to content

Commit 393faba

Browse files
committed
Tweaks
1 parent efef3c2 commit 393faba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

http/unstable_error_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { assertEquals, assertInstanceOf } from "@std/assert";
33
import { HttpError } from "./unstable_error.ts";
44

5-
Deno.test("HttpError initialises with correct defaults", () => {
5+
Deno.test("new HttpError() defaults message to STATUS_TEXT[status]", () => {
66
const error = new HttpError(500);
77
assertInstanceOf(error, Error);
88
assertEquals(error.name, "HttpError");
@@ -14,7 +14,7 @@ Deno.test("HttpError initialises with correct defaults", () => {
1414
});
1515
});
1616

17-
Deno.test("HttpError initialises with custom properties", () => {
17+
Deno.test("new HttpError() forwards properties from options", () => {
1818
const error = new HttpError(401, "Unauthorized", {
1919
cause: new Error("Underlying error"),
2020
init: {

0 commit comments

Comments
 (0)