diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 15:54:32 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 15:54:32 +0100 |
commit | 676b8dd18742875ae07827792ed88d2b5bb3afb7 (patch) | |
tree | cd4368012b40ff6fa28cefb85e7ab49c729041ca /js/tests/unit/controller/NavigationControllerSpec.js | |
parent | 62b6bd485009b5dbb85b50e634ea94aa177d8d42 (diff) |
first stab at recommended sites
Diffstat (limited to 'js/tests/unit/controller/NavigationControllerSpec.js')
-rw-r--r-- | js/tests/unit/controller/NavigationControllerSpec.js | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/js/tests/unit/controller/NavigationControllerSpec.js b/js/tests/unit/controller/NavigationControllerSpec.js index 1c23c35f1..72b9fe736 100644 --- a/js/tests/unit/controller/NavigationControllerSpec.js +++ b/js/tests/unit/controller/NavigationControllerSpec.js @@ -225,7 +225,7 @@ describe('NavigationController', function () { })); - it('should check if a starred is active', inject(function (FeedResource, + it('should check if starred is active', inject(function (FeedResource, FEED_TYPE, $controller) { var ctrl = $controller('NavigationController', { FeedResource: FeedResource, @@ -242,6 +242,22 @@ describe('NavigationController', function () { })); + it('should check if explore is active', inject(function (FeedResource, + FEED_TYPE, $controller) { + var ctrl = $controller('NavigationController', { + FeedResource: FeedResource, + $route: { + current: { + $$route: { + type: FEED_TYPE.EXPLORE + } + } + } + }); + + expect(ctrl.isExploreActive()).toBe(true); + })); + it('should check if a feed is active', inject(function (FeedResource, FEED_TYPE, $controller) { |