summaryrefslogtreecommitdiffstats
path: root/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/services/businesslayer/folderbusinesslayerSpec.coffee')
-rw-r--r--js/tests/services/businesslayer/folderbusinesslayerSpec.coffee7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee b/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee
index 2409649ae..e4c96a991 100644
--- a/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee
+++ b/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee
@@ -138,12 +138,19 @@ describe 'FolderBusinessLayer', ->
it 'should be visible if show all is true', =>
+ @FolderModel.add({id: 3, opened: false, name: 'ho'})
+ @FeedModel.add({id: 3, unreadCount:0, folderId: 3, url: 'a1'})
expect(@FolderBusinessLayer.isVisible(3)).toBe(false)
@ShowAll.setShowAll(true)
expect(@FolderBusinessLayer.isVisible(3)).toBe(true)
+ it 'should be visible if it has no feeds', =>
+ @FolderModel.add({id: 13, opened: false, name: 'ho'})
+ expect(@FolderBusinessLayer.isVisible(13)).toBe(true)
+
+
it 'should be visible if its active', =>
@ActiveFeed.handle({type: @FeedType.Folder, id:3})
expect(@FolderBusinessLayer.isVisible(3)).toBe(true)