20 lines
484 B
TypeScript
20 lines
484 B
TypeScript
import { flushdb, getTestServer } from "@server/test/support";
|
|
|
|
const server = getTestServer();
|
|
|
|
beforeEach(() => flushdb());
|
|
|
|
describe("POST unknown endpoint", () => {
|
|
it("should be not found", async () => {
|
|
const res = await server.post("/api/blah");
|
|
expect(res.status).toEqual(404);
|
|
});
|
|
});
|
|
|
|
describe("GET unknown endpoint", () => {
|
|
it("should be not found", async () => {
|
|
const res = await server.get("/api/blah");
|
|
expect(res.status).toEqual(404);
|
|
});
|
|
});
|