Node.js based forum software built for the modern web
test: fix email tests @julianlam
Barış Soner Uşaklı64718d0ce0b0
diff --git a/test/controllers.js b/test/controllers.jsindex 1bd2ffebbb..4c9fb1470b 100644--- a/test/controllers.js+++ b/test/controllers.js@@ -427,6 +427,7 @@ describe('Controllers', () => {});it('should reject an email that comprises only whitespace', async () => {+ meta.config.requireEmailAddress = 1;const uid = await user.create({ username: utils.generateUUID().slice(0, 10) });const result = await user.interstitials.email({userData: { uid: uid, updateEmail: true },@@ -488,6 +489,7 @@ describe('Controllers', () => {});it('should remove current email', async () => {+ meta.config.requireEmailAddress = 0;const uid = await user.create({ username: 'interstiuser5' });await user.setUserField(uid, 'email', '[email protected]');await user.email.confirmByUid(uid);