From ce992c0aaaceac8b6699bbea5ea671f85a9d2723 Mon Sep 17 00:00:00 2001 From: AndrewTrieu Date: Mon, 13 Mar 2023 12:52:06 +0200 Subject: [PATCH] Change app_test.js --- drill-and-practice/tests/app_test.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drill-and-practice/tests/app_test.js b/drill-and-practice/tests/app_test.js index 464e79a..78a7e6f 100644 --- a/drill-and-practice/tests/app_test.js +++ b/drill-and-practice/tests/app_test.js @@ -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.