feat: implement dashboard mockup and route

This commit is contained in:
syntaxbullet
2026-01-07 13:29:06 +01:00
parent ac4025e179
commit 63f55b6dfd
6 changed files with 307 additions and 9 deletions

View File

@@ -13,6 +13,13 @@ describe("Web Router", () => {
expect(text).toContain('id="uptime-display"');
});
it("should return dashboard page on /dashboard", async () => {
const req = new Request("http://localhost/dashboard");
const res = await router(req);
expect(res.status).toBe(200);
expect(await res.text()).toContain("Live Activity");
});
it("should return health check on /health", async () => {
const req = new Request("http://localhost/health");
const res = await router(req);