mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:40:43 +00:00
test: fix localized next-run assertions
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { t } from "../ui/src/i18n/index.ts";
|
||||
import { formatNextRun } from "../ui/src/ui/presenter.ts";
|
||||
|
||||
describe("formatNextRun", () => {
|
||||
it("returns n/a for nullish values", () => {
|
||||
expect(formatNextRun(null)).toBe("n/a");
|
||||
expect(formatNextRun(undefined)).toBe("n/a");
|
||||
it("returns localized n/a for nullish values", () => {
|
||||
expect(formatNextRun(null)).toBe(t("common.na"));
|
||||
expect(formatNextRun(undefined)).toBe(t("common.na"));
|
||||
});
|
||||
|
||||
it("includes weekday and relative time", () => {
|
||||
|
||||
Reference in New Issue
Block a user