summaryrefslogtreecommitdiffstats
path: root/js/tests/controllers/feedcontrollerSpec.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/controllers/feedcontrollerSpec.coffee')
-rw-r--r--js/tests/controllers/feedcontrollerSpec.coffee11
1 files changed, 9 insertions, 2 deletions
diff --git a/js/tests/controllers/feedcontrollerSpec.coffee b/js/tests/controllers/feedcontrollerSpec.coffee
index 755e84440..b5216db60 100644
--- a/js/tests/controllers/feedcontrollerSpec.coffee
+++ b/js/tests/controllers/feedcontrollerSpec.coffee
@@ -31,11 +31,12 @@ describe '_FeedController', ->
beforeEach inject (@_FeedController, @FolderBl, @FeedBl, $rootScope,
- @unreadCountFormatter) =>
+ @unreadCountFormatter, @SubscriptionsBl, @StarredBl) =>
@scope = $rootScope.$new()
@controller = new @_FeedController(@scope, @persistence, @FolderBl,
- @FeedBl, @unreadCountFormatter)
+ @FeedBl, @SubscriptionsBl, @StarredBl,
+ @unreadCountFormatter)
@@ -59,6 +60,12 @@ describe '_FeedController', ->
expect(@scope.folderBl).toBe(@FolderBl)
+ it 'should make SubscriptionsBl available', =>
+ expect(@scope.subscriptionsBl).toBe(@SubscriptionsBl)
+
+ it 'should make StarredBl available', =>
+ expect(@scope.starredBl).toBe(@StarredBl)
+
it 'should not add folders that have no name', =>
@persistence.createFolder = jasmine.createSpy('create')
@scope.addFolder(' ')