Combined functions, Changed some items

This commit is contained in:
Esad Mustafoski
2024-11-07 19:29:35 +01:00
parent f45945474d
commit 7a6152be51
6 changed files with 143 additions and 70 deletions

View File

@@ -13,6 +13,9 @@ import { app } from "../api/main.ts";
// +++ TESTS ------------------------------------------------------- //
Deno.test("GET /api returns testAPIPoint", async () => {
const request = await superoak(app);
await request.get("/api").expect(200).expect("testAPIPoint");
await request
.get("/api")
.timeout(5000) // 5 seconds timeout
.expect(200)
.expect("testAPIPoint");
});