mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: tests for #9217
This commit is contained in:
@@ -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();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user