From f2a5cd0b676d5381b3e8f4d7199d463112dd34cf Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 24 Jan 2021 14:05:11 -0500 Subject: [PATCH] fix: tests for #9217 --- test/user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/user.js b/test/user.js index 405ba3adc0..22fd744f66 100644 --- a/test/user.js +++ b/test/user.js @@ -2205,14 +2205,14 @@ describe('User', function () { it('should fail to verify invitation with invalid data', function (done) { User.verifyInvitation({ token: '', email: '' }, function (err) { - assert.equal(err.message, '[[error:invalid-data]]'); + assert.strictEqual(err.message, '[[register:invite.error-invite-only]]'); done(); }); }); it('should fail to verify invitation with invalid email', function (done) { User.verifyInvitation({ token: 'test', email: 'doesnotexist@test.com' }, function (err) { - assert.equal(err.message, '[[error:invalid-token]]'); + assert.strictEqual(err.message, '[[register:invite.error-invalid-data]]'); done(); }); });