mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
test: fix tests so that when user.create is called, email is set prior to confirmation
This commit is contained in:
@@ -111,6 +111,8 @@ describe('API', async () => {
|
||||
// Create sample users
|
||||
const adminUid = await user.create({ username: 'admin', password: '123456', email: 'test@example.org' });
|
||||
const unprivUid = await user.create({ username: 'unpriv', password: '123456', email: 'unpriv@example.org' });
|
||||
await user.setUserField(adminUid, 'email', 'test@example.org');
|
||||
await user.setUserField(unprivUid, 'email', 'unpriv@example.org');
|
||||
await user.email.confirmByUid(adminUid);
|
||||
await user.email.confirmByUid(unprivUid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user