Skip to content

Commit

Permalink
fix: tests for #9217
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Jan 24, 2021
1 parent 27cae0d commit f2a5cd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit f2a5cd0

Please sign in to comment.