fix: tests for #9217

v1.18.x
Julian Lam 4 years ago
parent 27cae0d5d8
commit f2a5cd0b67

@ -2205,14 +2205,14 @@ describe('User', function () {
it('should fail to verify invitation with invalid data', function (done) { it('should fail to verify invitation with invalid data', function (done) {
User.verifyInvitation({ token: '', email: '' }, function (err) { User.verifyInvitation({ token: '', email: '' }, function (err) {
assert.equal(err.message, '[[error:invalid-data]]'); assert.strictEqual(err.message, '[[register:invite.error-invite-only]]');
done(); done();
}); });
}); });
it('should fail to verify invitation with invalid email', function (done) { it('should fail to verify invitation with invalid email', function (done) {
User.verifyInvitation({ token: 'test', email: 'doesnotexist@test.com' }, function (err) { 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(); done();
}); });
}); });

Loading…
Cancel
Save