summaryrefslogtreecommitdiffstats
path: root/js/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2013-09-23 02:11:54 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2013-09-23 02:11:54 +0200
commit00119cb60c9c1b24b141c7197fadb02c4e482861 (patch)
tree8b94ca4262e3c72aa1f7513520c20a7fc2c48e7e /js/tests
parentd8eb445220de1b6a71ce77468b6aedec3e547697 (diff)
Empty folders should probably be displayed
Edit fix #361
Diffstat (limited to 'js/tests')
-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)