mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
test: fix tests so that when user.create is called, email is set prior to confirmation
This commit is contained in:
@@ -483,7 +483,8 @@ describe('Controllers', () => {
|
||||
});
|
||||
|
||||
it('should remove current email', async () => {
|
||||
const uid = await user.create({ username: 'interstiuser5', email: 'interstiuser5@nodebb.org' });
|
||||
const uid = await user.create({ username: 'interstiuser5' });
|
||||
await user.setUserField(uid, 'email', 'interstiuser5@nodebb.org');
|
||||
await user.email.confirmByUid(uid);
|
||||
|
||||
const result = await user.interstitials.email({
|
||||
|
||||
Reference in New Issue
Block a user