chore: bump std to 208 and deal with deprecations (#2081)

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
Reed von Redwitz
2023-11-28 16:35:26 +00:00
committed by GitHub
co-authored by Marvin Hagemeister
parent 6a90fdbf1b
commit b902205feb
20 changed files with 137 additions and 131 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
import { Status } from "../server.ts";
import { STATUS_CODE } from "../server.ts";
import { assertEquals, assertStringIncludes } from "./deps.ts";
import { getErrorOverlay, withFakeServe } from "./test_utils.ts";
Deno.test("error page rendered", async () => {
await withFakeServe("./tests/fixture_error/dev.ts", async (server) => {
const resp = await server.get("/");
assertEquals(resp.status, Status.InternalServerError);
assertEquals(resp.status, STATUS_CODE.InternalServerError);
assertEquals(resp.headers.get("content-type"), "text/html; charset=utf-8");
await resp.text(); // Consume