chore: remove passport local mongoose (#2713)

This commit is contained in:
James Mikrut
2023-05-26 12:20:11 -04:00
committed by Dan Ribbens
parent 863be3d852
commit 03b1ee0896
16 changed files with 276 additions and 83 deletions

View File

@@ -290,7 +290,7 @@ describe('Auth', () => {
const { loginAttempts, lockUntil } = userResult;
expect(loginAttempts).toBe(0);
expect(lockUntil).toBeUndefined();
expect(lockUntil).toBeNull();
});
});
});

View File

@@ -472,10 +472,10 @@ describe('collections-graphql', () => {
});
expect(Array.isArray(error.response.errors)).toBe(true);
expect(error.response.errors[0].message).toEqual('No password was given');
expect(error.response.errors[0].message).toEqual('The following field is invalid: password');
expect(Array.isArray(error.response.errors[0].locations)).toEqual(true);
expect(error.response.errors[0].path[0]).toEqual('test2');
expect(error.response.errors[0].extensions.name).toEqual('MissingPasswordError');
expect(error.response.errors[0].extensions.name).toEqual('ValidationError');
expect(error.response.errors[1].message).toEqual('The following field is invalid: email');
expect(error.response.errors[1].path[0]).toEqual('test3');