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