From 00119cb60c9c1b24b141c7197fadb02c4e482861 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 23 Sep 2013 02:11:54 +0200 Subject: Empty folders should probably be displayed Edit fix #361 --- js/tests/services/businesslayer/folderbusinesslayerSpec.coffee | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js/tests') 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) -- cgit v1.2.3