POP 내역 총 보유 · 예약 · 사용 가능 3구분 · 온보딩 추천인 코드
This commit is contained in:
@@ -805,7 +805,17 @@ void main() {
|
||||
expect([left.joined, left.passportTier, left.contributedPop, left.fandomName],
|
||||
[false, PassportTier.diamond, 700, '떠난팬덤']);
|
||||
expect(profile.badges.single.label, 'HEALTH · 2/7');
|
||||
expect(profile.balancePop, 12540);
|
||||
// 총 보유 = 일반 12,540 + 기여 300 + 예약 0(G-05).
|
||||
expect(profile.balancePop, 12840);
|
||||
});
|
||||
|
||||
test('잔액 3구분 — 총 보유 = 예약 + 사용 가능(G-05 · QA 2-29)', () async {
|
||||
final db = await _seed();
|
||||
await db.doc('users/$_uid/wallet/main').set({
|
||||
'activityBalance': 1000, 'supportBalance': 200, 'pendingActivity': 50,
|
||||
});
|
||||
final profile = await FirestoreMyRepository(_backend(db)).profile();
|
||||
expect([profile.balancePop, profile.reservedPop, profile.availablePop], [1250, 50, 1200]);
|
||||
});
|
||||
|
||||
test('레벨 필드가 없으면 Lv.1 · SILVER 로 둔다', () async {
|
||||
|
||||
Reference in New Issue
Block a user