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

This commit is contained in:
2026-01-26 22:16:33 +01:00
parent f2bd80ccd3
commit 09632d004d
72 changed files with 1946 additions and 277 deletions

View File

@@ -19,7 +19,6 @@ describe('Track Image Management', () => {
id: 'track-1',
name: 'Test Track',
shortName: 'TST',
location: 'Test Location',
country: 'Test Country',
gameId: 'game-1',
category: 'road',
@@ -42,7 +41,7 @@ describe('Track Image Management', () => {
// Then: The track should have the correct image URL
const savedTrack = await trackRepository.findById('track-1');
expect(savedTrack?.imageUrl?.value).toBe(imageUrl);
expect(savedTrack?.imageUrl?.toString()).toBe(imageUrl);
});
it('should retrieve track images (simulated via repository)', async () => {
@@ -50,7 +49,6 @@ describe('Track Image Management', () => {
id: 'track-1',
name: 'Test Track',
shortName: 'TST',
location: 'Test Location',
country: 'Test Country',
gameId: 'game-1',
category: 'road',
@@ -60,6 +58,6 @@ describe('Track Image Management', () => {
const found = await trackRepository.findById('track-1');
expect(found).not.toBeNull();
expect(found?.imageUrl?.value).toBe('https://example.com/track.png');
expect(found?.imageUrl?.toString()).toBe('https://example.com/track.png');
});
});