diff --git a/modules/users/tests/server/user.server.model.tests.js b/modules/users/tests/server/user.server.model.tests.js index 6c61a0a22a..9479bc28f0 100644 --- a/modules/users/tests/server/user.server.model.tests.js +++ b/modules/users/tests/server/user.server.model.tests.js @@ -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);