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); }); });