feat: deliver competition projection outbox effects
This commit is contained in:
1 parent
ab9c48b1e6
commit
5049220e03
5 files changed
+504
-8
No files matched your search
@@ -153,8 +153,8 @@ describe('Competition result Riot mapping', () => {
|
||||
});
|
||||
expect(accepted?.evidence.payloadHash).toMatch(/^[a-f0-9]{64}$/);
|
||||
expect(accepted?.normalizedParticipants).toHaveLength(10);
|
||||
expect(typeof accepted?.normalizedParticipants[0]?.userId).toBe('string');
|
||||
expect(accepted?.normalizedParticipants[0]).toMatchObject({
|
||||
userId: expect.any(String),
|
||||
teamId: teamBId,
|
||||
side: 'blue',
|
||||
summonerName: '',
|
||||
@@ -219,9 +219,10 @@ describe('Competition result Riot mapping', () => {
|
||||
info: { ...detail.info, gameCreation: detail.info.gameCreation + 60_000 },
|
||||
};
|
||||
|
||||
expect([later, detail].sort(compareRiotGameChronology).map((game) => game.metadata.matchId)).toEqual([
|
||||
'KR_123456789',
|
||||
'KR_LATER',
|
||||
]);
|
||||
expect(
|
||||
[later, detail]
|
||||
.sort(compareRiotGameChronology)
|
||||
.map((game) => game.metadata.matchId),
|
||||
).toEqual(['KR_123456789', 'KR_LATER']);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user