fix issues in core

This commit is contained in:
2025-12-23 15:38:50 +01:00
parent df5c20c5cc
commit 120d3bb1a1
125 changed files with 1005 additions and 793 deletions

View File

@@ -16,7 +16,7 @@ describe('CreatePaymentUseCase', () => {
beforeEach(() => {
paymentRepository = {
create: vi.fn(),
} as unknown as IPaymentRepository as any;
};
output = {
present: vi.fn(),
@@ -24,7 +24,7 @@ describe('CreatePaymentUseCase', () => {
useCase = new CreatePaymentUseCase(
paymentRepository as unknown as IPaymentRepository,
output as unknown as UseCaseOutputPort<any>,
output as unknown as UseCaseOutputPort<unknown>,
);
});

View File

@@ -18,11 +18,11 @@ describe('GetMembershipFeesUseCase', () => {
beforeEach(() => {
membershipFeeRepository = {
findByLeagueId: vi.fn(),
} as unknown as IMembershipFeeRepository as any;
};
memberPaymentRepository = {
findByLeagueIdAndDriverId: vi.fn(),
} as unknown as IMemberPaymentRepository as any;
};
output = {
present: vi.fn(),
@@ -31,7 +31,7 @@ describe('GetMembershipFeesUseCase', () => {
useCase = new GetMembershipFeesUseCase(
membershipFeeRepository as unknown as IMembershipFeeRepository,
memberPaymentRepository as unknown as IMemberPaymentRepository,
output as unknown as UseCaseOutputPort<any>,
output as unknown as UseCaseOutputPort<unknown>,
);
});

View File

@@ -16,7 +16,7 @@ describe('GetPaymentsUseCase', () => {
beforeEach(() => {
paymentRepository = {
findByFilters: vi.fn(),
} as unknown as IPaymentRepository as any;
};
output = {
present: vi.fn(),
@@ -24,7 +24,7 @@ describe('GetPaymentsUseCase', () => {
useCase = new GetPaymentsUseCase(
paymentRepository as unknown as IPaymentRepository,
output as unknown as UseCaseOutputPort<any>,
output as unknown as UseCaseOutputPort<unknown>,
);
});

View File

@@ -23,11 +23,11 @@ describe('ProcessWalletTransactionUseCase', () => {
findByLeagueId: vi.fn(),
create: vi.fn(),
update: vi.fn(),
} as unknown as IWalletRepository as any;
};
transactionRepository = {
create: vi.fn(),
} as unknown as ITransactionRepository as any;
};
output = {
present: vi.fn(),
@@ -36,7 +36,7 @@ describe('ProcessWalletTransactionUseCase', () => {
useCase = new ProcessWalletTransactionUseCase(
walletRepository as unknown as IWalletRepository,
transactionRepository as unknown as ITransactionRepository,
output as unknown as UseCaseOutputPort<any>,
output as unknown as UseCaseOutputPort<unknown>,
);
});