fix issues

This commit is contained in:
2026-01-02 00:21:24 +01:00
parent 79913bb45e
commit 8693dde21e
46 changed files with 1680 additions and 302 deletions

View File

@@ -49,7 +49,7 @@ describe('GetCurrentSessionUseCase', () => {
const storedUser: StoredUser = {
id: userId,
email: 'test@example.com',
displayName: 'Test User',
displayName: 'John Smith',
passwordHash: 'hash',
primaryDriverId: 'driver-123',
createdAt: new Date(),
@@ -64,7 +64,7 @@ describe('GetCurrentSessionUseCase', () => {
const callArgs = output.present.mock.calls?.[0]?.[0];
expect(callArgs?.user).toBeInstanceOf(User);
expect(callArgs?.user.getId().value).toBe(userId);
expect(callArgs?.user.getDisplayName()).toBe('Test User');
expect(callArgs?.user.getDisplayName()).toBe('John Smith');
});
it('should return error when user does not exist', async () => {