mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-08 00:40:52 +08:00
17 lines
343 B
JavaScript
17 lines
343 B
JavaScript
import { describe, expect, it } from "vitest";
|
|
|
|
import createMockRes from "test-utils/create-mock-res";
|
|
|
|
import handler from "pages/api/healthcheck";
|
|
|
|
describe("pages/api/healthcheck", () => {
|
|
it("returns 'up'", () => {
|
|
const req = {};
|
|
const res = createMockRes();
|
|
|
|
handler(req, res);
|
|
|
|
expect(res.body).toBe("up");
|
|
});
|
|
});
|