feat(web): align team match names with bracket
This commit is contained in:
1 parent
bb32c26694
commit
dc77b37494
5 files changed
+54
-60
No files matched your search
@@ -51,24 +51,38 @@ test("groups only matching tournament codes under each active Series", () => {
|
||||
);
|
||||
});
|
||||
|
||||
test("uses Korean round names while keeping global game numbers secondary", () => {
|
||||
test("uses bracket match names while keeping global game numbers secondary", () => {
|
||||
const opening = readySeries("upper-opening-2", 1, "WB_R1_M2");
|
||||
const final = readySeries("upper-final", 3, "WB_FINAL");
|
||||
const upperLater = readySeries("upper-final", 3, "WB_FINAL");
|
||||
const lower: SeriesProjection = {
|
||||
...readySeries("lower-opening", 4, "LB_R1_M1"),
|
||||
stage: { type: "lower", roundNumber: 1, displayOrder: 4 },
|
||||
};
|
||||
const rounds: BracketRoundView[] = [
|
||||
round("upper", 1, 1, ["upper-opening-1", opening.seriesId]),
|
||||
round("upper", 3, 3, [final.seriesId]),
|
||||
round("upper", 3, 3, [upperLater.seriesId]),
|
||||
round("lower", 1, 4, [lower.seriesId]),
|
||||
];
|
||||
|
||||
assert.equal(
|
||||
getTeamSeriesDisplayLabel(opening, rounds),
|
||||
"승자조 1라운드 · 2경기",
|
||||
"브래킷 1R · 2경기",
|
||||
);
|
||||
assert.equal(getTeamSeriesDisplayLabel(final, rounds), "승자조 결승");
|
||||
|
||||
const assignment = tournamentCode("final-1", final.seriesId, 1, 19);
|
||||
assert.equal(
|
||||
getTournamentCodeCopyLabel(assignment, "승자조 결승"),
|
||||
"승자조 결승 1세트 토너먼트 코드 복사 (전체 19번 게임)",
|
||||
getTeamSeriesDisplayLabel(upperLater, rounds),
|
||||
"브래킷 상위 3R",
|
||||
);
|
||||
assert.equal(getTeamSeriesDisplayLabel(lower, rounds), "브래킷 하위 1R");
|
||||
|
||||
const assignment = tournamentCode(
|
||||
"final-1",
|
||||
upperLater.seriesId,
|
||||
1,
|
||||
19,
|
||||
);
|
||||
assert.equal(
|
||||
getTournamentCodeCopyLabel(assignment, "브래킷 상위 3R"),
|
||||
"브래킷 상위 3R 1세트 토너먼트 코드 복사 (전체 19번 게임)",
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user