Skip to content

Node.js based forum software built for the modern web

fix test

Barış Soner Uşaklıb3f6c423c6f5
diff --git a/test/controllers.js b/test/controllers.js
index da95296f24..af8dcd51f1 100644
--- a/test/controllers.js
+++ b/test/controllers.js
@@ -1775,8 +1775,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();
});
});