fix issues
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user