add test to check breadcrumbs on home route

v1.18.x
Baris Usakli 7 years ago
parent 1eca1f1da9
commit e68e5122e2

@ -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) { it('should redirect to custom homepage', function (done) {
meta.configs.set('homePageRoute', 'groups', function (err) { meta.configs.set('homePageRoute', 'groups', function (err) {
assert.ifError(err); assert.ifError(err);

Loading…
Cancel
Save