Update README
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<h1>Quizzy Application</h1>
|
||||
|
||||
<P>This is a web application that is used for repeated practice of learned content. The application provides a list of topics and allows creating multiple-choice questions into those topics that are then answered by self and others.</p>
|
||||
<p>This is a web application that is used for repeated practice of learned content. The application provides a list of topics and allows creating multiple-choice questions into those topics that are then answered by self and others.</p>
|
||||
|
||||
<p>The application also shows basic statistics: the total number of available questions and the total number of question answers. In addition, the application also provides an API for retrieving and answering random questions.</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user