광고 일일 횟수 카운터에 퀘스트 완료 알림을 만들지 않음
This commit is contained in:
@@ -59,6 +59,11 @@ it('영웅의 선물 발동은 회원 전원에게 발동자 닉네임으로', a
|
||||
expect(hero[0]!.fandomId).toBe(FANDOM);
|
||||
});
|
||||
|
||||
it('Quest 문서가 없는 진행 카운터(광고 일일 횟수 ad)는 퀘스트 완료로 알리지 않는다', async () => {
|
||||
expect(await notifyQuestDone(A, 'ad', undefined, { dayKey: '2026-10-08', count: 1 })).toBe(false);
|
||||
expect((await inbox(A)).filter((n) => n.eventType === 'quest')).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('퀘스트 완료는 횟수가 오른 때만 본인에게, 상세 경로를 싣는다', async () => {
|
||||
const day = '2026-10-05';
|
||||
expect(await notifyQuestDone(A, 'test-inbox-quest', undefined, { dayKey: day, count: 1 })).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user