From e68e5122e2415d764f796230d2f22b5b9c4723ae Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Wed, 15 Nov 2017 14:57:26 -0500 Subject: [PATCH] add test to check breadcrumbs on home route --- test/controllers.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/controllers.js b/test/controllers.js index a0c4eba1dc..15d2be3765 100644 --- a/test/controllers.js +++ b/test/controllers.js @@ -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);