summaryrefslogtreecommitdiffstats
path: root/js/tests/controllers/itemcontrollerSpec.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/controllers/itemcontrollerSpec.coffee')
-rw-r--r--js/tests/controllers/itemcontrollerSpec.coffee10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/tests/controllers/itemcontrollerSpec.coffee b/js/tests/controllers/itemcontrollerSpec.coffee
index 27fc82f71..955f9fe16 100644
--- a/js/tests/controllers/itemcontrollerSpec.coffee
+++ b/js/tests/controllers/itemcontrollerSpec.coffee
@@ -40,7 +40,7 @@ describe 'ItemController', ->
beforeEach inject ($controller, @ItemBusinessLayer, @FeedBusinessLayer,
$rootScope, @FeedLoading, @AutoPageLoading, @FeedModel, @ItemModel,
- @ActiveFeed, @FeedType, @NewestItem) =>
+ @ActiveFeed, @FeedType, @NewestItem, @Compact) =>
@ActiveFeed.handle({type: @FeedType.Folder, id: 3})
@scope = $rootScope.$new()
@@ -183,4 +183,10 @@ describe 'ItemController', ->
callback()
@scope.loadNew()
- expect(@scope.refresh).toBe(false) \ No newline at end of file
+ expect(@scope.refresh).toBe(false)
+
+
+ it 'should bind the compact object', =>
+ expect(@scope.isCompactView()).toBe(false)
+ @Compact.handle(true)
+ expect(@scope.isCompactView()).toBe(true) \ No newline at end of file