mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 08:31:22 +01:00
fix test
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user