fix issues
This commit is contained in:
@@ -25,7 +25,7 @@ describe('InMemoryAuthRepository', () => {
|
||||
|
||||
const user = User.create({
|
||||
id: UserId.fromString('user-1'),
|
||||
displayName: 'Test User',
|
||||
displayName: 'John Smith',
|
||||
email: 'test@example.com',
|
||||
});
|
||||
|
||||
@@ -49,7 +49,7 @@ describe('InMemoryAuthRepository', () => {
|
||||
|
||||
const user = User.create({
|
||||
id: UserId.fromString('user-2'),
|
||||
displayName: 'User Two',
|
||||
displayName: 'Jane Smith',
|
||||
email: 'two@example.com',
|
||||
});
|
||||
|
||||
@@ -57,13 +57,13 @@ describe('InMemoryAuthRepository', () => {
|
||||
|
||||
const updated = User.create({
|
||||
id: UserId.fromString('user-2'),
|
||||
displayName: 'User Two Updated',
|
||||
displayName: 'Jane Smith Updated',
|
||||
email: 'two@example.com',
|
||||
});
|
||||
|
||||
await authRepo.save(updated);
|
||||
|
||||
const stored = await userRepo.findById('user-2');
|
||||
expect(stored?.displayName).toBe('User Two Updated');
|
||||
expect(stored?.displayName).toBe('Jane Smith Updated');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user