fix issues in core
This commit is contained in:
@@ -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>,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -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>,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -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>,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -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>,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user