feat : add all label type
This commit is contained in:
@@ -206,6 +206,14 @@ describe("structured guide validation", () => {
|
||||
expect(teamSectionSchema.safeParse({ ...base, groups: [{ note: null, teams: [{ ...teams[0], members: [{ ...member("1"), artifactKey: null }, ...["2", "3", "4"].map(member)] }] }] }).success).toBe(false);
|
||||
});
|
||||
|
||||
it("accepts all-level ranges for team constellations and refinements", () => {
|
||||
const member = (characterKey: string) => ({ characterKey, weaponKey: "weapon-1", artifactKey: "artifact-1", secondArtifactKey: null, constellation: "0-6", refinement: "1-5", damage: 100 });
|
||||
const input = { expectedVersion: 1, groups: [{ note: null, teams: [{ title: "Test", rotationSeconds: 20, combo: "E > Q", members: ["1", "2", "3", "4"].map(member) }] }] };
|
||||
const result = teamSectionSchema.safeParse(input);
|
||||
expect(result.success).toBe(true);
|
||||
if (result.success) expect(result.data.groups[0].teams[0].members[0]).toMatchObject({ constellation: "0-6", refinement: "1-5" });
|
||||
});
|
||||
|
||||
it("accepts a second artifact set for a team member", () => {
|
||||
const member = (characterKey: string) => ({ characterKey, weaponKey: "weapon-1", artifactKey: "artifact-1", secondArtifactKey: characterKey === "1" ? "artifact-2" : null, constellation: 0, refinement: 1, damage: 100 });
|
||||
const input = { expectedVersion: 1, groups: [{ note: null, teams: [{ title: "Test", rotationSeconds: 20, combo: "E > Q", members: ["1", "2", "3", "4"].map(member) }] }] };
|
||||
|
||||
Reference in New Issue
Block a user