mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:00:42 +00:00
test: fix ui presenter next run test for multi-language environments
This commit is contained in:
committed by
George Zhang
parent
576dbdeef7
commit
3e2e78c43b
@@ -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(")");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user