From 64718d0ce0b0d64575df7eee5eb11ba6c0838b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 20 Jun 2023 19:02:46 -0400 Subject: [PATCH] test: fix email tests @julianlam --- test/controllers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/controllers.js b/test/controllers.js index 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', 'interstiuser5@nodebb.org'); await user.email.confirmByUid(uid);