mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 09:20:32 +01:00
add test to check breadcrumbs on home route
This commit is contained in:
@@ -120,6 +120,16 @@ describe('Controllers', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('should load not load breadcrumbs on home page route', function (done) {
|
||||
request(nconf.get('url') + '/api', { json: true }, function (err, res, body) {
|
||||
assert.ifError(err);
|
||||
assert.equal(res.statusCode, 200);
|
||||
assert(body);
|
||||
assert(!body.breadcrumbs);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should redirect to custom homepage', function (done) {
|
||||
meta.configs.set('homePageRoute', 'groups', function (err) {
|
||||
assert.ifError(err);
|
||||
|
||||
Reference in New Issue
Block a user