diff --git a/test/ui.presenter-next-run.test.ts b/test/ui.presenter-next-run.test.ts index 12c2ed4d80d..49e1798c20d 100644 --- a/test/ui.presenter-next-run.test.ts +++ b/test/ui.presenter-next-run.test.ts @@ -10,7 +10,8 @@ describe("formatNextRun", () => { it("includes weekday and relative time", () => { const ts = Date.UTC(2026, 1, 23, 15, 0, 0); const out = formatNextRun(ts); - expect(out).toMatch(/^[A-Za-z]{3}, /); + const weekday = new Date(ts).toLocaleDateString(undefined, { weekday: "short" }); + expect(out.slice(0, weekday.length + 2)).toBe(`${weekday}, `); expect(out).toContain("("); expect(out).toContain(")"); });