fix issues in core
This commit is contained in:
@@ -156,7 +156,7 @@ describe('DriverLivery', () => {
|
||||
const updatedLivery = livery.setLeagueOverride('league-1', 'season-1', 'decal-1', 0.5, 0.5);
|
||||
|
||||
expect(updatedLivery.leagueOverrides).toHaveLength(1);
|
||||
expect(updatedLivery.leagueOverrides[0].leagueId).toBe('league-1');
|
||||
expect(updatedLivery.leagueOverrides[0]!.leagueId).toBe('league-1');
|
||||
});
|
||||
|
||||
it('should update existing override', () => {
|
||||
@@ -172,7 +172,7 @@ describe('DriverLivery', () => {
|
||||
const updatedLivery = livery.setLeagueOverride('league-1', 'season-1', 'decal-1', 0.6, 0.6);
|
||||
|
||||
expect(updatedLivery.leagueOverrides).toHaveLength(1);
|
||||
expect(updatedLivery.leagueOverrides[0].newX).toBe(0.6);
|
||||
expect(updatedLivery.leagueOverrides[0]!.newX).toBe(0.6);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user