2024-05-12 21:25:52 +02:00
|
|
|
import request from "supertest";
|
|
|
|
import { app } from "../src/app";
|
2024-05-03 01:46:23 +02:00
|
|
|
|
2024-05-12 21:25:52 +02:00
|
|
|
describe("GET /api/v1", () => {
|
|
|
|
describe("should return json with docs", () => {
|
|
|
|
test("should respond with a 200 status code", async () => {
|
|
|
|
const response = await request(app).get("/api/v1").send({});
|
|
|
|
expect(response.headers["content-type"]).toMatch(/json/);
|
2024-05-03 01:46:23 +02:00
|
|
|
expect(response.statusCode).toBe(200);
|
|
|
|
});
|
|
|
|
});
|
2024-05-12 21:25:52 +02:00
|
|
|
});
|