website refactor
This commit is contained in:
@@ -17,8 +17,8 @@ describe('GetAllLeaguesWithCapacityUseCase', () => {
|
||||
|
||||
it('should return leagues with capacity information', async () => {
|
||||
const useCase = new GetAllLeaguesWithCapacityUseCase(
|
||||
mockLeagueRepo as unknown as ILeagueRepository,
|
||||
mockMembershipRepo as unknown as ILeagueMembershipRepository,
|
||||
mockLeagueRepo as unknown as LeagueRepository,
|
||||
mockMembershipRepo as unknown as LeagueMembershipRepository,
|
||||
);
|
||||
|
||||
const league1 = { id: 'league1', name: 'Test League 1', settings: { maxDrivers: 10 } };
|
||||
@@ -56,8 +56,8 @@ describe('GetAllLeaguesWithCapacityUseCase', () => {
|
||||
|
||||
it('should return empty result when no leagues', async () => {
|
||||
const useCase = new GetAllLeaguesWithCapacityUseCase(
|
||||
mockLeagueRepo as unknown as ILeagueRepository,
|
||||
mockMembershipRepo as unknown as ILeagueMembershipRepository,
|
||||
mockLeagueRepo as unknown as LeagueRepository,
|
||||
mockMembershipRepo as unknown as LeagueMembershipRepository,
|
||||
);
|
||||
|
||||
mockLeagueRepo.findAll.mockResolvedValue([]);
|
||||
|
||||
Reference in New Issue
Block a user