Files
outline/server/routes/api/cron.test.ts
Tom Moor 1fbc000e03 chore: Reduce test boilerplate (#4300)
* chore: Reduce test boilerplate

* mo
2022-10-15 19:40:21 -07:00

11 lines
273 B
TypeScript

import { getTestServer } from "@server/test/support";
const server = getTestServer();
describe("#cron.daily", () => {
it("should require authentication", async () => {
const res = await server.post("/api/cron.daily");
expect(res.status).toEqual(401);
});
});