1
0
forked from baron/baron-sso

refactor(adminfront): rename legacy companyCode to tenantSlug across frontend (#426)

This commit is contained in:
2026-03-23 16:59:05 +09:00
parent b2f96b216d
commit b0e18cc724
12 changed files with 48 additions and 48 deletions

View File

@@ -8,15 +8,15 @@ describe("i18n utility", () => {
});
it("returns fallback if key not found", () => {
expect(t("non.existent.key", "Fallback")).toBe("Fallback");
expect(t("this.key.truly.does.not.exist", "Fallback")).toBe("Fallback");
});
it("returns key if fallback not provided and key not found", () => {
expect(t("non.existent.key")).toBe("non.existent.key");
expect(t("this.key.truly.does.not.exist")).toBe("this.key.truly.does.not.exist");
});
it("replaces variables in template", () => {
expect(t("test.key", "Hello {{ name }}", { name: "World" })).toBe(
expect(t("this.test.key", "Hello {{ name }}", { name: "World" })).toBe(
"Hello World",
);
});