mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 19:47:03 -04:00
Rename local password check method
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
277e2fb1ca
commit
820a1ae43a
4 changed files with 8 additions and 8 deletions
|
@ -102,9 +102,9 @@ describe('IdentityService', () => {
|
|||
) as Identity;
|
||||
identity.passwordHash = await hashPassword(password);
|
||||
user.identities = Promise.resolve([identity]);
|
||||
await expect(
|
||||
service.loginWithLocalIdentity(user, password),
|
||||
).resolves.toEqual(undefined);
|
||||
await expect(service.checkLocalPassword(user, password)).resolves.toEqual(
|
||||
undefined,
|
||||
);
|
||||
});
|
||||
describe('fails', () => {
|
||||
it('when user has no local identity', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue