From 8c9754ecee6fcfca7fb2ea9ae6052ac704030f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 18 Oct 2018 15:16:13 -0400 Subject: [PATCH] add test for /admin/settings/user --- test/controllers-admin.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/controllers-admin.js b/test/controllers-admin.js index d0bec4e74c..425c8c029b 100644 --- a/test/controllers-admin.js +++ b/test/controllers-admin.js @@ -145,6 +145,15 @@ describe('Admin Controllers', function () { }); }); + it('should load user settings page', function (done) { + request(nconf.get('url') + '/admin/settings/user', { jar: jar }, function (err, res, body) { + assert.ifError(err); + assert.equal(res.statusCode, 200); + assert(body); + done(); + }); + }); + it('should load info page for a user', function (done) { request(nconf.get('url') + '/api/user/regular/info', { jar: jar, json: true }, function (err, res, body) { assert.ifError(err);