Riot ID 자동 갱신 (Riot 클라이언트에 붙으면 바로 · 10분마다 이름 서비스로 연결 계정의 지금 Riot ID 확인, puuid 는 그대로 두고 표시 이름만) · 경기 탭 데스매치 숨김 · 모드(GET /api/matches/modes) · 날짜(after) 필터 (예전 앱은 사이트가 거름) · 범인찾기 목록 데스매치 숨김 · 녹음 없거나 끊긴 경기도 범인찾기 (eligibility.notes, AI 자료에 안내 줄) · Riot 경기 기록 마지막 확인 시각(historyAt) 안내 · 테스트
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,7 @@ test('발로란트·롤 어댑터: 가짜 Riot 서버로 경기 시작→채팅
|
||||
process.env.GVR_LOL_LIVE_URL = mock.base;
|
||||
process.env.GVR_POLL_MS = '150';
|
||||
process.env.GVR_DETAIL_RETRY_MS = '100';
|
||||
process.env.GVR_NAMES_EVERY_MS = '200';
|
||||
const { Store } = await import('../src/core/db/db.ts');
|
||||
const { Timeline } = await import('../src/core/timeline.ts');
|
||||
const { GameAssets } = await import('../src/core/games/assets.ts');
|
||||
@@ -89,6 +90,16 @@ test('발로란트·롤 어댑터: 가짜 Riot 서버로 경기 시작→채팅
|
||||
assert.deepEqual(sum.score, { ally: 2, enemy: 1 });
|
||||
assert.equal(sum.win, true);
|
||||
|
||||
// ---- Riot ID 를 바꾼 사람: 연결(puuid)은 그대로, 표시되는 Riot ID 만 새 이름으로
|
||||
store.upsertUser({ id: 'friend', name: '민수', avatar: null });
|
||||
store.setAccounts('friend', [{ puuid: 'riotid:아직모름#KR1', riotId: '아직모름#KR1' }]);
|
||||
const before = live.filter((e) => e.type === 'users.updated').length;
|
||||
mock.st.names = { 'self-puuid-0001': ['새하늘', 'KR2'] };
|
||||
await until(() => store.listAccounts().some((a) => a.puuid === 'self-puuid-0001' && a.riot_id === '새하늘#KR2'), 5000, 'rename');
|
||||
assert.equal(store.userIdForPuuid('self-puuid-0001'), 'owner');
|
||||
assert.ok(live.filter((e) => e.type === 'users.updated').length > before, '사이트에 유저 목록 다시 보냄');
|
||||
assert.ok(store.listAccounts().some((a) => a.user_id === 'friend' && a.riot_id === '아직모름#KR1'), 'puuid 모르는 계정은 그대로');
|
||||
|
||||
// ---- 롤
|
||||
mock.st.lolPhase = 'ChampSelect';
|
||||
await until(() => (gm as any).adapters[1].pendingChat.length === 1, 5000, 'champ select chat');
|
||||
|
||||
Reference in New Issue
Block a user