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

Commit

Permalink
Merge pull request #826 from codydaig/test/userEmail
Browse files Browse the repository at this point in the history
[test] Allow an email with sub domains
  • Loading branch information
lirantal committed Aug 20, 2015
2 parents bc31d45 + 74f58bb commit 6474718
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 - "abc.def@abc.def.com"', function (done) {
var _user = new User(user);

_user.email = 'abc.def@abc.def.com';
_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 - "abc-def@abc.com"', function (done) {
var _user = new User(user);

Expand Down

0 comments on commit 6474718

Please sign in to comment.