Merged some functions in database/utils.ts to attempt to shorten code length, Also changed tests to work with the new datatypes
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
// Responsible: Esad Mustafoski
|
||||
/**
|
||||
* @author Esad Mustafoski
|
||||
* @file test/api_main_test.ts
|
||||
* This file is made to test the API returns, Is not ready yet
|
||||
*/
|
||||
|
||||
// test/api_main_test.ts
|
||||
/// <reference lib="deno.ns" />
|
||||
// GENERATED USING AI, DO NOT USE YET
|
||||
|
||||
// +++ IMPORTS ------------------------------------------------------ //
|
||||
import { superoak } from "https://deno.land/x/superoak/mod.ts";
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user