From 02436eae6d660ebf709d987836fb657dc63f5bce Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 23 Apr 2013 13:47:16 +0200 Subject: dont show unread articles when there are no feeds --- js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'js/tests') diff --git a/js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee b/js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee index 090433fbd..c0d674bda 100644 --- a/js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee +++ b/js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee @@ -60,8 +60,11 @@ describe 'SubscriptionsBusinessLayer', -> expect(@SubscriptionsBusinessLayer.isVisible()).toBe(false) - it 'should always be visible if its the active feed', => + it 'should always be visible if its the active feed and there are feeds', => @ActiveFeed.handle({type: @FeedType.Subscriptions, id:0}) + expect(@SubscriptionsBusinessLayer.isVisible()).toBe(false) + + @FeedModel.add({id: 3, unreadCount: 0, url: 'hi'}) expect(@SubscriptionsBusinessLayer.isVisible()).toBe(true) -- cgit v1.2.3