This commit is contained in:
@@ -119,6 +119,14 @@ describe('Fleet discovery and match freshness', () => {
|
||||
(event) => {
|
||||
const report = { ...gameEvent(event, 38, 4, server.name), receivedAt: iso(-1000) };
|
||||
expect(currentRound(server, report, now)).toBe(38);
|
||||
const unknownStart = { ...server, game_started_at: null };
|
||||
expect(currentRound(unknownStart, report, now)).toBe(38);
|
||||
expect(
|
||||
currentRound({ ...unknownStart, telemetry_after: iso() }, report, now)
|
||||
).toBeNull();
|
||||
expect(
|
||||
currentRound(unknownStart, { ...report, receivedAt: iso(-121_000) }, now)
|
||||
).toBeNull();
|
||||
for (const change of [
|
||||
{ receivedAt: iso(-121_000) },
|
||||
{ receivedAt: iso(-61_000) },
|
||||
|
||||
Reference in New Issue
Block a user