feat : update
CI / Verify (push) Successful in 1m21s
CI / Build immutable images and deploy (push) Successful in 3m12s

This commit is contained in:
2026-09-06 14:47:11 +07:00 Unverified
parent 37d6d6703f
commit c3a7a44d02
19 changed files with 4218 additions and 38 deletions
+17
View File
@@ -3,6 +3,7 @@ import { describe, expect, it } from "vitest";
import {
avatarIconName,
ascensionSnapshot,
baseStatsSnapshot,
characterDetailSchema,
cleanLunarisText,
constellationSnapshot,
@@ -79,6 +80,22 @@ describe("Lunaris character data", () => {
]);
});
it("selects dynamic level 90 base stats", () => {
const detail = characterDetailSchema.parse({
attributes: [
{ level: 1, ascension: 0, hp: 1, atk: 2, def: 3 },
{ level: 90, ascension: 6, hp: 12981, atk: 335, def: 787, "CRIT DMG%": "38.4" },
],
});
expect(baseStatsSnapshot(detail)).toEqual([
{ key: "hp", value: 12981 },
{ key: "atk", value: 335 },
{ key: "def", value: 787 },
{ key: "CRIT DMG%", value: "38.4" },
]);
});
it("reads the supported weapon type from character details", () => {
const detail = characterDetailSchema.parse({
info: { element: "Cryo", weapon: "WEAPON_SWORD_ONE_HAND" },