remove companion tests
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user