diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-29 13:25:04 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-29 13:30:01 +0200 |
commit | 3fc18156ae0b586e8de0c82949acfa6291317536 (patch) | |
tree | 201e97511bea44c58b5e9d78d8cf36ae2e2b54f9 /js/tests/services/businesslayer/feedbusinesslayerSpec.coffee | |
parent | a03b54c6a59837d0045c140ea7aef3fae95daa95 (diff) |
go back to order by id, fix #138, use a newest item id to prevent marking items as read that the user didnt see yet fix #141, also update the starred count periodically
Diffstat (limited to 'js/tests/services/businesslayer/feedbusinesslayerSpec.coffee')
-rw-r--r-- | js/tests/services/businesslayer/feedbusinesslayerSpec.coffee | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee b/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee index 1c663d279..feb687b2c 100644 --- a/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee +++ b/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee @@ -93,6 +93,12 @@ describe 'FeedBusinessLayer', -> expect(count).toBe(169) + it 'should not mark feed read when no highest item id', => + @persistence.setFeedRead = jasmine.createSpy('setFeedRead') + @FeedBusinessLayer.markFeedRead(5) + expect(@persistence.setFeedRead).not.toHaveBeenCalled() + + it 'should mark feed as read', => @NewestItem.handle(25) @ActiveFeed.handle({type: @FeedType.Feed, id: 5}) |