From 68bcd7f48e3a5794612aa3ef8581491aab65ef02 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 5 Aug 2022 13:43:25 -0400 Subject: [PATCH] test: fix one last failing test --- test/controllers.js | 7 +++---- test/helpers/index.js | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/controllers.js b/test/controllers.js index abec3e5023..b05b56b041 100644 --- a/test/controllers.js +++ b/test/controllers.js @@ -332,7 +332,7 @@ describe('Controllers', () => { }); }); - describe.only('registration interstitials', () => { + describe('registration interstitials', () => { describe('email update', () => { let jar; let token; @@ -342,7 +342,6 @@ describe('Controllers', () => { username: utils.generateUUID().slice(0, 10), password: utils.generateUUID(), }); - console.log(jar); token = await helpers.getCsrfToken(jar); meta.config.requireEmailAddress = 1; @@ -411,7 +410,7 @@ describe('Controllers', () => { interstitials: [], }); assert.strictEqual(result.interstitials[0].template, 'partials/email_update'); - await result.interstitials[0].callback({ uid: uid }, { + await result.interstitials[0].callback({ uid }, { email: 'invalidEmail', }); assert(false); @@ -494,7 +493,7 @@ describe('Controllers', () => { before(async () => { jar = await helpers.registerUser({ - username: utils.generateUUID(), + username: utils.generateUUID().slice(0, 10), password: utils.generateUUID(), }); token = await helpers.getCsrfToken(jar); diff --git a/test/helpers/index.js b/test/helpers/index.js index 8f0b22ba92..6ca11e9252 100644 --- a/test/helpers/index.js +++ b/test/helpers/index.js @@ -167,7 +167,6 @@ helpers.registerUser = function (data, callback) { 'x-csrf-token': body.csrf_token, }, }, (err, response, body) => { - console.log(body); callback(err, jar, response, body); }); });