summaryrefslogtreecommitdiffstats
path: root/js/tests/unit/controller/NavigationControllerSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/controller/NavigationControllerSpec.js')
-rw-r--r--js/tests/unit/controller/NavigationControllerSpec.js18
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) {