feat :idk
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user