remove companion tests

This commit is contained in:
2026-01-03 15:18:40 +01:00
parent 20f1b53c27
commit afbe42b0e1
67 changed files with 72 additions and 6325 deletions

View File

@@ -528,22 +528,21 @@ describe('SponsorService', () => {
describe('getSponsorBilling', () => {
it('returns billing data', async () => {
// Mock the use case to set up the presenter
getSponsorBillingUseCase.execute.mockImplementation(async () => {
sponsorBillingPresenter.present({
// Mock the use case to return billing data directly
getSponsorBillingUseCase.execute.mockResolvedValue(
Result.ok({
paymentMethods: [],
invoices: [],
stats: {
totalSpent: 0,
pendingAmount: 0,
nextPaymentDate: '',
nextPaymentAmount: 0,
nextPaymentDate: null,
nextPaymentAmount: null,
activeSponsorships: 0,
averageMonthlySpend: 0,
},
});
return Result.ok(undefined);
});
})
);
const result = await service.getSponsorBilling('s1');