Added API and Tests, Tests generated using AI and will be replaced sometime
This commit is contained in:
13
tests/api.test.ts
Normal file
13
tests/api.test.ts
Normal 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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user