refactor: use named status codes from std internally (#417)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Abdulaziz
2022-07-30 15:35:31 +00:00
committed by GitHub
co-authored by Luca Casonato
parent ba20756c17
commit 1dc1f87fc3
6 changed files with 46 additions and 40 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import { Status } from "../src/server/deps.ts";
import {
assert,
assertEquals,
@@ -133,7 +134,7 @@ Deno.test({
// Access the root page
const res = await fetch("http://localhost:8000");
await res.body?.cancel();
assertEquals(res.status, 200);
assertEquals(res.status, Status.OK);
// verify the island is revived.
const browser = await puppeteer.launch({
@@ -282,7 +283,7 @@ Deno.test({
// Access the root page
const res = await fetch("http://localhost:8000");
await res.body?.cancel();
assertEquals(res.status, 200);
assertEquals(res.status, Status.OK);
// verify the island is revived.
const browser = await puppeteer.launch({ args: ["--no-sandbox"] });