refactor: use named status codes from std internally (#417)
Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
co-authored by
Luca Casonato
parent
ba20756c17
commit
1dc1f87fc3
+3
-2
@@ -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"] });
|
||||
|
||||
Reference in New Issue
Block a user