Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
[test] Allow an email with sub domains
Browse files Browse the repository at this point in the history
  • Loading branch information
codydaig committed Aug 20, 2015
1 parent d6d2b41 commit 74f58bb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions modules/users/tests/server/user.server.model.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,24 @@ describe('User Model Unit Tests:', function () {

});

it('should allow valid email address - "[email protected]"', function (done) {
var _user = new User(user);

_user.email = '[email protected]';
_user.save(function (err) {
if (!err) {
_user.remove(function (err_remove) {
should.not.exist(err_remove);
done();
});
} else {
should.exist(err);
done();
}
});

});

it('should allow valid email address - "[email protected]"', function (done) {
var _user = new User(user);

Expand Down

0 comments on commit 74f58bb

Please sign in to comment.