Node.js based forum software built for the modern web
fixing tests
Julian Lam0d65cec3d09b
diff --git a/test/user.js b/test/user.jsindex 897bb71a78..cc3097a228 100644--- a/test/user.js+++ b/test/user.js@@ -1433,7 +1433,7 @@ describe('User', function () {username: 'rejectme',password: '123456','password-confirm': '123456',- email: '<script>alert("ok");<script>[email protected]',+ email: '<script>alert("ok")<script>[email protected]',}, function (err) {assert.ifError(err);helpers.loginUser('admin', '123456', function (err, jar) {@@ -1441,7 +1441,7 @@ describe('User', function () {request(nconf.get('url') + '/api/admin/manage/registration', { jar: jar, json: true }, function (err, res, body) {assert.ifError(err);assert.equal(body.users[0].username, 'rejectme');- assert.equal(body.users[0].email, '<script>alert("ok");<script>[email protected]');+ assert.equal(body.users[0].email, '<script>alert("ok")<script>[email protected]');done();});});