diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-17 10:50:46 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-17 10:51:04 +0200 |
commit | 1fbcd35ac8f868e48228aafa375c5a305554a3c3 (patch) | |
tree | f3b40fa3e34f90774097bf78ceffc7f4527fa05b /js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee | |
parent | 19b9456b6a96e8139d62a498fb31a96ed36fb442 (diff) |
always return the unreadcount when marking read to set update request as 0, dont create new feeds that only consist of unreadcount updates
Diffstat (limited to 'js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee')
-rw-r--r-- | js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee b/js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee index 8ab904c0a..48ae9e03c 100644 --- a/js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee +++ b/js/tests/services/businesslayer/subsriptionsbusinesslayerSpec.coffee @@ -40,7 +40,7 @@ describe 'SubscriptionsBusinessLayer', -> it 'should be visible shows all items is set to true and there are feeds', => - @FeedModel.add({id: 3, unreadCount: 5}) + @FeedModel.add({id: 3, unreadCount: 5, urlHash: 'hi'}) expect(@SubscriptionsBusinessLayer.isVisible()).toBe(true) @@ -66,7 +66,7 @@ describe 'SubscriptionsBusinessLayer', -> it 'should mark all feeds as read', => - item = {id: 3, unreadCount: 132} + item = {id: 3, unreadCount: 132, urlHash: 'hi'} @FeedModel.add(item) @SubscriptionsBusinessLayer.markAllRead() |