test: stricter isValidationPending check

isekai-main
Julian Lam 3 years ago
parent ad63517511
commit d1b1f50bb2

@ -983,7 +983,7 @@ describe('User', () => {
await User.email.expireValidation(uid); await User.email.expireValidation(uid);
await apiUser.update({ uid: uid }, { uid: uid, email: 'updatedAgain@me.com', password: '123456' }); await apiUser.update({ uid: uid }, { uid: uid, email: 'updatedAgain@me.com', password: '123456' });
assert.strictEqual(await User.email.isValidationPending(uid), true); assert.strictEqual(await User.email.isValidationPending(uid, 'updatedAgain@me.com'.toLowerCase()), true);
}); });
it('should update cover image', (done) => { it('should update cover image', (done) => {

Loading…
Cancel
Save