code quality
Some checks failed
CI / lint-typecheck (pull_request) Failing after 12s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
Some checks failed
CI / lint-typecheck (pull_request) Failing after 12s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
This commit is contained in:
@@ -65,7 +65,7 @@ describe('Dashboard Data Flow Integration', () => {
|
||||
expect(dto.driver.name).toBe('Complete Flow Driver');
|
||||
expect(dto.statistics.rating).toBe(1600);
|
||||
expect(dto.upcomingRaces).toHaveLength(1);
|
||||
expect(dto.upcomingRaces[0].trackName).toBe('Monza');
|
||||
expect(dto.upcomingRaces[0]!.trackName).toBe('Monza');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -111,21 +111,21 @@ describe('GetDashboardUseCase - Success Path', () => {
|
||||
expect(result.statistics.leagues).toBe(2);
|
||||
|
||||
expect(result.upcomingRaces).toHaveLength(3);
|
||||
expect(result.upcomingRaces[0].trackName).toBe('Nürburgring');
|
||||
expect(result.upcomingRaces[1].trackName).toBe('Monza');
|
||||
expect(result.upcomingRaces[2].trackName).toBe('Imola');
|
||||
expect(result.upcomingRaces[0]!.trackName).toBe('Nürburgring');
|
||||
expect(result.upcomingRaces[1]!.trackName).toBe('Monza');
|
||||
expect(result.upcomingRaces[2]!.trackName).toBe('Imola');
|
||||
|
||||
expect(result.championshipStandings).toHaveLength(2);
|
||||
expect(result.championshipStandings[0].leagueName).toBe('GT3 Championship');
|
||||
expect(result.championshipStandings[0].position).toBe(5);
|
||||
expect(result.championshipStandings[0].points).toBe(150);
|
||||
expect(result.championshipStandings[0].totalDrivers).toBe(20);
|
||||
expect(result.championshipStandings[0]!.leagueName).toBe('GT3 Championship');
|
||||
expect(result.championshipStandings[0]!.position).toBe(5);
|
||||
expect(result.championshipStandings[0]!.points).toBe(150);
|
||||
expect(result.championshipStandings[0]!.totalDrivers).toBe(20);
|
||||
|
||||
expect(result.recentActivity).toHaveLength(3);
|
||||
expect(result.recentActivity[0].description).toBe('Finished 3rd at Monza');
|
||||
expect(result.recentActivity[0].status).toBe('success');
|
||||
expect(result.recentActivity[1].description).toBe('Invited to League XYZ');
|
||||
expect(result.recentActivity[2].description).toBe('Reached 1500 rating');
|
||||
expect(result.recentActivity[0]!.description).toBe('Finished 3rd at Monza');
|
||||
expect(result.recentActivity[0]!.status).toBe('success');
|
||||
expect(result.recentActivity[1]!.description).toBe('Invited to League XYZ');
|
||||
expect(result.recentActivity[2]!.description).toBe('Reached 1500 rating');
|
||||
|
||||
expect(context.eventPublisher.getDashboardAccessedEventCount()).toBe(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user