Skip to content

Commit 988a0e9

Browse files
fix(billing): mock bumpOrgPlan service in admin integration test (Batch 3a follow-up)
Extend billing.admin.service.js mock in integration tests to include creditDisputeReinstated and bumpOrgPlan so the adminBumpPlan controller path (now delegating to the service) resolves correctly instead of throwing.
1 parent f323b57 commit 988a0e9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

modules/billing/tests/billing.admin.integration.tests.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ describe('Billing admin integration tests:', () => {
198198
listDeadLetters: jest.fn(),
199199
purgeDeadLetter: jest.fn(),
200200
cancelSubscription: jest.fn(),
201+
creditDisputeReinstated: jest.fn(),
202+
// Batch 3a: adminBumpPlan now delegates here (controller→service refactor)
203+
bumpOrgPlan: jest.fn().mockResolvedValue({ _id: '607f1f77bcf86cd799439033', plan: 'pro' }),
201204
},
202205
}));
203206

0 commit comments

Comments
 (0)