From 5ce9f898b2aa53ac94ea70b36287f117bfabb788 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Tue, 25 Jul 2017 16:23:43 -0400 Subject: [PATCH] fix test --- test/controllers.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/controllers.js b/test/controllers.js index 3d0cb5d447..307978330b 100644 --- a/test/controllers.js +++ b/test/controllers.js @@ -1776,8 +1776,7 @@ describe('Controllers', function () { it('should redirect to login', function (done) { request(nconf.get('url') + '//api/admin/advanced/database', { json: true }, function (err, res, body) { assert.ifError(err); - assert.equal(res.statusCode, 200); - assert(body.indexOf('Login to your account') !== -1); + assert.equal(res.statusCode, 401); done(); }); });