feat : update
This commit is contained in:
@@ -14,4 +14,12 @@ describe("guide validation messages", () => {
|
||||
"Team 2: Team ต้องมีตัวละครไม่ซ้ำกัน 4 ตัว",
|
||||
]);
|
||||
});
|
||||
|
||||
it("uses the authored team name when one is available", () => {
|
||||
expect(formatGuideValidationIssues(
|
||||
"team",
|
||||
[{ path: ["teams", 1, "combo"], message: "Invalid input" }],
|
||||
{ teamNames: ["First team", "Hypercarry"] },
|
||||
)).toEqual(["Hypercarry: กรุณากรอก Combo"]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user