Update README

This commit is contained in:
AndrewTrieu
2023-03-12 20:19:04 +02:00
parent 6a3e4d8cd9
commit 346fcd3e3d
5 changed files with 208 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
import { app } from "../app.js";
import { superoak } from "https://deno.land/x/superoak@4.4.0/mod.ts";
Deno.test("Home page works", async () => {
const testClient = await superoak(app);
const request = testClient
.get("https://quizzy.fly.dev")
.set("Origin", "http://localhost:8000");
await request
.expect(new RegExp("Quizzy"))
.expect("Access-Control-Allow-Origin", "http://localhost:8000");
});