가입 약관 동의 기록 · 서비스 탈퇴 · 온보딩 6단계 · Coach Mark

This commit is contained in:
Sn-Kinos
2026-10-05 22:48:25 +09:00
parent e7010010bb
commit 55424bd4a2
36 changed files with 2884 additions and 77 deletions
+2 -4
View File
@@ -93,13 +93,11 @@ describe('귀속 제한', () => {
expect((await db().collection('referrals').where('referredUid', '==', C).get()).size).toBe(1);
});
it('추천인 하루 상한(referralDailyCapPerReferrer)을 넘으면 귀속만 남고 capped', async () => {
it('추천인 하루 상한이 없다 — 같은 날 여러 명을 추천해도 모두 pending (10/3 통합회신 7항)', async () => {
await db().doc('config/policy').set({ referralDailyCapPerReferrer: 1 });
const codeA = await inviteCodeOf(A);
expect((await attribute(B, codeA)).reward).toBe('pending');
expect((await attribute(C, codeA)).reward).toBe('capped');
await complete(C);
expect((await wallet(A)).pendingActivity ?? 0).toBe(0);
expect((await attribute(C, codeA)).reward).toBe('pending');
});
it('귀속 전에 검증 활동이 있으면 ineligible — 지급 없음', async () => {