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

@@ -38,7 +38,7 @@ describe('Sponsor Logo Management', () => {
// Then: The sponsor should have the correct logo URL
const savedSponsor = await sponsorRepository.findById('sponsor-1');
expect(savedSponsor?.logoUrl?.value).toBe(logoUrl);
expect(savedSponsor?.logoUrl?.toString()).toBe(logoUrl);
});
it('should retrieve sponsor logos (simulated via repository)', async () => {
@@ -52,6 +52,6 @@ describe('Sponsor Logo Management', () => {
const found = await sponsorRepository.findById('sponsor-1');
expect(found).not.toBeNull();
expect(found?.logoUrl?.value).toBe('https://example.com/logo.png');
expect(found?.logoUrl?.toString()).toBe('https://example.com/logo.png');
});
});

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');
});
});