diff options
Diffstat (limited to 'js/tests')
-rw-r--r-- | js/tests/controllers/feedcontrollerSpec.coffee | 4 | ||||
-rw-r--r-- | js/tests/services/unreadcountformaterSpec.coffee | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/js/tests/controllers/feedcontrollerSpec.coffee b/js/tests/controllers/feedcontrollerSpec.coffee index aecc858f9..01170509d 100644 --- a/js/tests/controllers/feedcontrollerSpec.coffee +++ b/js/tests/controllers/feedcontrollerSpec.coffee @@ -93,13 +93,13 @@ describe 'FeedController', -> it 'should show 99+ if in window title when more than 99 unread count', => item = {id: 3, unreadCount: 1, faviconLink: 'test', url: 'hi'} - item1 = {id: 5, unreadCount: 99, faviconLink: 'test', url: 'his'} + item1 = {id: 5, unreadCount: 999, faviconLink: 'test', url: 'his'} @FeedModel.add(item) @FeedModel.add(item1) @scope.getTotalUnreadCount() - expect(@$window.document.title).toBe('News (99+) | ownCloud') + expect(@$window.document.title).toBe('News (999+) | ownCloud') it 'should move a feed if moveFeedToFolder is broadcasted', => diff --git a/js/tests/services/unreadcountformaterSpec.coffee b/js/tests/services/unreadcountformaterSpec.coffee index 86deab2af..9e61f8525 100644 --- a/js/tests/services/unreadcountformaterSpec.coffee +++ b/js/tests/services/unreadcountformaterSpec.coffee @@ -27,9 +27,9 @@ describe 'unreadCountFormatter', -> beforeEach inject (@unreadCountFormatter) => - it 'should return the normal count if its below 99', => - expect(@unreadCountFormatter(99)).toBe(99) + it 'should return the normal count if its below 999', => + expect(@unreadCountFormatter(999)).toBe(999) - it 'should set the count to 99+ if the count is over 99', => - expect(@unreadCountFormatter(100)).toBe('99+')
\ No newline at end of file + it 'should set the count to 999+ if the count is over 999', => + expect(@unreadCountFormatter(1000)).toBe('999+')
\ No newline at end of file |