fix(tests): correct string update errors

This commit is contained in:
SabreCat
2018-11-28 01:00:46 +00:00
parent b509c6631d
commit a30c4379a6
3 changed files with 9 additions and 5 deletions

View File

@@ -245,7 +245,9 @@ describe('Password Utilities', () => {
it('returns false if the user has no local auth', async () => {
let user = await generateUser({
auth: 'not an object with valid fields',
auth: {
facebook: {},
},
});
let res = await validatePasswordResetCodeAndFindUser(encrypt(JSON.stringify({
userId: user._id,