mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 03:57:06 -04:00
refactor(identity): lazy-load relations
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
3539216cf3
commit
dcfb00adc1
2 changed files with 4 additions and 4 deletions
|
@ -60,7 +60,7 @@ describe('IdentityService', () => {
|
|||
await checkPassword(password, identity.passwordHash ?? '').then(
|
||||
(result) => expect(result).toBeTruthy(),
|
||||
);
|
||||
expect(identity.user).toEqual(user);
|
||||
expect(await identity.user).toEqual(user);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -83,7 +83,7 @@ describe('IdentityService', () => {
|
|||
await checkPassword(newPassword, identity.passwordHash ?? '').then(
|
||||
(result) => expect(result).toBeTruthy(),
|
||||
);
|
||||
expect(identity.user).toEqual(user);
|
||||
expect(await identity.user).toEqual(user);
|
||||
});
|
||||
it('fails, when user has no local identity', async () => {
|
||||
user.identities = Promise.resolve([]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue