refactor core presenters
This commit is contained in:
@@ -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,
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user