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:
@@ -53,12 +53,12 @@ describe('GetLeagueStandings', () => {
|
||||
expect(result.isOk()).toBe(true);
|
||||
const data = result.unwrap();
|
||||
expect(data.standings).toHaveLength(2);
|
||||
expect(data.standings[0].driverId).toBe(driver1Id);
|
||||
expect(data.standings[0].points).toBe(100);
|
||||
expect(data.standings[0].rank).toBe(1);
|
||||
expect(data.standings[1].driverId).toBe(driver2Id);
|
||||
expect(data.standings[1].points).toBe(80);
|
||||
expect(data.standings[1].rank).toBe(2);
|
||||
expect(data.standings[0]!.driverId).toBe(driver1Id);
|
||||
expect(data.standings[0]!.points).toBe(100);
|
||||
expect(data.standings[0]!.rank).toBe(1);
|
||||
expect(data.standings[1]!.driverId).toBe(driver2Id);
|
||||
expect(data.standings[1]!.points).toBe(80);
|
||||
expect(data.standings[1]!.rank).toBe(2);
|
||||
});
|
||||
|
||||
it('should retrieve standings with minimal driver statistics', async () => {
|
||||
|
||||
@@ -63,6 +63,7 @@ describe('StandingsCalculation', () => {
|
||||
fastestLap: 120000,
|
||||
incidents: 0,
|
||||
startPosition: 1,
|
||||
points: 25,
|
||||
}));
|
||||
|
||||
await context.resultRepository.create(Result.create({
|
||||
@@ -73,6 +74,7 @@ describe('StandingsCalculation', () => {
|
||||
fastestLap: 121000,
|
||||
incidents: 2,
|
||||
startPosition: 5,
|
||||
points: 15,
|
||||
}));
|
||||
|
||||
// When: Standings are recalculated
|
||||
|
||||
Reference in New Issue
Block a user