fix:ランキングで同順位がいる場合の順位表示の修正 #1009
ci.yml
on: pull_request
Build & Check (backend)
32s
Build & Check (frontend)
25s
Check (config)
21s
Annotations
2 errors
src/match/service/generateRanking.test.ts > GenerateRankingService > 予選: 同じ順位の場合、ゴールタイムでソートする:
packages/kcms/src/match/service/generateRanking.test.ts#L43
AssertionError: expected [ …(11) ] to strictly equal [ …(11) ]
- Expected
+ Received
Array [
Object {
"goalTimeSeconds": 60,
"points": 12,
"rank": 1,
"teamID": "1",
},
Object {
"goalTimeSeconds": 64,
"points": 10,
"rank": 2,
"teamID": "2",
},
Object {
"goalTimeSeconds": 70,
"points": 9,
"rank": 3,
"teamID": "3",
},
Object {
"goalTimeSeconds": 74,
"points": 7,
"rank": 4,
"teamID": "4",
},
Object {
"goalTimeSeconds": 80,
"points": 5,
"rank": 5,
"teamID": "5",
},
Object {
"goalTimeSeconds": 90,
"points": 4,
"rank": 6,
"teamID": "7",
},
Object {
"goalTimeSeconds": 100,
"points": 4,
"rank": 7,
"teamID": "6",
},
Object {
"goalTimeSeconds": 100,
"points": 1,
"rank": 8,
"teamID": "8",
},
Object {
"goalTimeSeconds": 100,
"points": 1,
"rank": 8,
"teamID": "9",
},
Object {
"goalTimeSeconds": Infinity,
"points": 0,
- "rank": 9,
+ "rank": 10,
"teamID": "10",
},
Object {
"goalTimeSeconds": Infinity,
"points": 0,
- "rank": 9,
+ "rank": 10,
"teamID": "11",
},
]
❯ src/match/service/generateRanking.test.ts:43:32
|
Build & Check (backend)
Process completed with exit code 1.
|