Change app_test.js
This commit is contained in:
@@ -1,12 +1 @@
|
||||
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");
|
||||
});
|
||||
// Tested using Playwright. Please go to e2e-playwright in the parent folder. This file is left empty on purpose.
|
||||
|
||||
Reference in New Issue
Block a user