This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
quizzy-application/drill-and-practice/tests/app_test.js
2023-03-12 20:19:04 +02:00

13 lines
421 B
JavaScript

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");
});