Added API and Tests, Tests generated using AI and will be replaced sometime

This commit is contained in:
Esad Mustafoski
2024-11-05 02:05:39 +01:00
parent 7a43130a39
commit 3d31061087
6 changed files with 433 additions and 74 deletions

13
tests/api.test.ts Normal file
View File

@@ -0,0 +1,13 @@
// Responsible: Esad Mustafoski
// test/api_main_test.ts
/// <reference lib="deno.ns" />
// GENERATED USING AI, DO NOT USE YET
import { superoak } from "https://deno.land/x/superoak/mod.ts";
import { app } from "../api/main.ts";
Deno.test("GET /api returns testAPIPoint", async () => {
const request = await superoak(app);
await request.get("/api").expect(200).expect("testAPIPoint");
});