refactor core presenters

This commit is contained in:
2025-12-19 19:42:19 +01:00
parent 8116fe888f
commit 94fc538f44
228 changed files with 2817 additions and 3097 deletions

View File

@@ -49,10 +49,10 @@ describe('CompleteDriverOnboardingUseCase', () => {
expect(driverRepository.create).toHaveBeenCalledWith(
expect.objectContaining({
id: 'user-1',
iracingId: 'user-1',
name: 'John Doe',
country: 'US',
bio: 'Test bio',
iracingId: expect.objectContaining({ value: 'user-1' }),
name: expect.objectContaining({ value: 'John Doe' }),
country: expect.objectContaining({ value: 'US' }),
bio: expect.objectContaining({ value: 'Test bio' }),
})
);
});
@@ -123,9 +123,9 @@ describe('CompleteDriverOnboardingUseCase', () => {
expect(driverRepository.create).toHaveBeenCalledWith(
expect.objectContaining({
id: 'user-1',
iracingId: 'user-1',
name: 'John Doe',
country: 'US',
iracingId: expect.objectContaining({ value: 'user-1' }),
name: expect.objectContaining({ value: 'John Doe' }),
country: expect.objectContaining({ value: 'US' }),
bio: undefined,
})
);