Skip to content

Commit e54fec9

Browse files
committed
Fix tests
1 parent 5fabe76 commit e54fec9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/rest/match/match-controller.spec.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,17 @@ describe("MatchController", () => {
9797

9898
await request(app.getHttpServer())
9999
.get(`/match/player/${pims[0].playerId}`)
100-
.query({ page: 0})
100+
.query({ page: 0 })
101101
.expect(200)
102102
.expect(
103103
JSON.stringify(
104-
await makePage([mapper.mapMatch({ ...fm, players: [pims[0]] })], 1, 0, 25),
104+
await makePage(
105+
[mapper.mapMatch({ ...fm, players: [pims[0]] })],
106+
1,
107+
0,
108+
25,
109+
(t) => t,
110+
),
105111
),
106112
);
107113
});
@@ -112,9 +118,9 @@ describe("MatchController", () => {
112118

113119
await request(app.getHttpServer())
114120
.get(`/match/player/-41234213`)
115-
.query({ page: 0})
121+
.query({ page: 0 })
116122
.expect(200)
117-
.expect(JSON.stringify(await makePage([], 0, 0, 25)));
123+
.expect(JSON.stringify(await makePage([], 0, 0, 25, (t) => t)));
118124
});
119125
});
120126
});

0 commit comments

Comments
 (0)