feat :idk
CI / Verify (push) Successful in 1m1s
CI / Build immutable images and deploy (push) Failing after 51s

This commit is contained in:
2026-08-31 22:05:51 +07:00 Unverified
parent e45bd36f5f
commit 040d49fd9b
11 changed files with 3689 additions and 11 deletions
+14
View File
@@ -5,6 +5,8 @@ import {
characterDetailSchema,
cleanLunarisText,
constellationSnapshot,
nameCardImageName,
splashImageName,
supportsWeaponType,
talentSnapshot,
} from "@/lib/catalog/lunaris";
@@ -16,6 +18,18 @@ describe("Lunaris character data", () => {
);
});
it("maps CardImg names to Lunaris character card assets", () => {
expect(splashImageName("UI_Gacha_AvatarIcon_Ayaka")).toBe(
"UI_Gacha_AvatarImg_Ayaka.png",
);
expect(nameCardImageName("UI_Gacha_AvatarIcon_Ayaka")).toBe(
"UI_NameCardPic_Ayaka_P.png",
);
expect(nameCardImageName("UI_Gacha_AvatarIcon_Qin")).toBe(
"UI_NameCardPic_Qin_P.png",
);
});
it("removes display markup from constellation text", () => {
expect(cleanLunarisText('"A {LINK#N1}<color=#fff>bright</color>{/LINK} morning"')).toBe("A bright morning");
});