Skip to content

Node.js based forum software built for the modern web

add test for /admin/settings/user

Barış Soner Uşaklı8c9754ecee6f
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);