mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 00:50:23 -05:00
chore(server): fix unit test (#1194)
This commit is contained in:
parent
4545249fa3
commit
c032cfd99e
1 changed files with 4 additions and 1 deletions
|
@ -110,7 +110,10 @@ describe('UserService', () => {
|
||||||
|
|
||||||
await sut.updateUser(immichUser, dto);
|
await sut.updateUser(immichUser, dto);
|
||||||
|
|
||||||
expect(userRepositoryMock.update).toHaveBeenCalledWith(immichUser.id, { email: 'updated@test.com' });
|
expect(userRepositoryMock.update).toHaveBeenCalledWith(immichUser.id, {
|
||||||
|
id: 'immich_id',
|
||||||
|
email: 'updated@test.com',
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not let a user change their email to one already in use', async () => {
|
it('should not let a user change their email to one already in use', async () => {
|
||||||
|
|
Loading…
Reference in a new issue