포그라운드 Push 표시 · 퀘스트 알림 다국어 제목 · 약관 미동의 계정의 행성 가입·성운 생성 차단
This commit is contained in:
@@ -67,3 +67,14 @@ it('퀘스트 완료는 횟수가 오른 때만 본인에게, 상세 경로를
|
||||
expect(quest[0]!.title).toBe('[만보기] 퀘스트를 완료했어요!');
|
||||
expect(quest[0]!.targetPath).toBe('quests/test-inbox-quest');
|
||||
});
|
||||
|
||||
it('운영 Quest 의 다국어 제목은 사용자 언어(없으면 ko)로 푼다', async () => {
|
||||
const db = getFirestore();
|
||||
await db.doc('quests/test-inbox-quest').set({ title: { ko: '신곡 스트리밍', en: 'Stream the single' } });
|
||||
await db.doc(`users/${B}`).set({ locale: 'en' });
|
||||
await notifyQuestDone(A, 'test-inbox-quest', undefined, { dayKey: '2026-10-06', count: 1 });
|
||||
await notifyQuestDone(B, 'test-inbox-quest', undefined, { dayKey: '2026-10-06', count: 1 });
|
||||
const titles = async (uid: string) => (await inbox(uid)).filter((n) => n.eventType === 'quest').map((n) => n.title);
|
||||
expect(await titles(A)).toContain('[신곡 스트리밍] 퀘스트를 완료했어요!');
|
||||
expect(await titles(B)).toEqual(['[Stream the single] 퀘스트를 완료했어요!']);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user