From 74f58bbbd6759a05133556e55e2afef871d4f444 Mon Sep 17 00:00:00 2001 From: "Cody B. Daig" Date: Wed, 19 Aug 2015 19:08:44 -0700 Subject: [PATCH] [test] Allow an email with sub domains --- .../tests/server/user.server.model.tests.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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);