Files
co-lite/solvway-admin-portal/app/lib/i18n/dashboardLabel.test.ts
T
ngqileandClaude Opus 5.5 0a5d5a229b fix(portal): label the Dashboard module in the sidebar
The sidebar shows a module by its name as a message key; BO_DASHBOARD had
no default, so the raw code showed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-01 10:38:52 +08:00

10 lines
378 B
TypeScript

import { describe, it, expect } from "vitest";
import { resolveMessage } from "./t";
// The sidebar labels the BO_DASHBOARD module by its name as a message key; without a default it shows the raw code.
describe("BO_DASHBOARD label", () => {
it("resolves to Dashboard with an empty catalog", () => {
expect(resolveMessage({}, "BO_DASHBOARD")).toBe("Dashboard");
});
});