Simplify match history with filters and persistent pagination
This commit is contained in:
@@ -39,7 +39,7 @@ describe('completed match details', () => {
|
||||
const { getMatchDetail, serverMatchHistory } = await import('../../src/lib/server/fleet/match-history.js');
|
||||
const match = getMatchDetail(1)!;
|
||||
const { game, startObserved, players, ...summary } = match;
|
||||
expect(summary).toEqual(serverMatchHistory(server).matches[0]);
|
||||
expect({ ...summary, game }).toEqual(serverMatchHistory(server).matches[0]);
|
||||
expect({ ...summary, game, startObserved }).toMatchObject({
|
||||
id: 1, game: 't5', startObserved: true, server, status: 'completed',
|
||||
startedAt: timestamp(0), endedAt: timestamp(3), durationMs: 180_000,
|
||||
|
||||
Reference in New Issue
Block a user