summaryrefslogtreecommitdiffstats
path: root/js/tests
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-16 17:39:32 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-16 17:39:32 +0200
commit2937a633de8f54d0f5f20f8ced6e8914da40d312 (patch)
treefaf12c9d5e837e2c3e9e50388a6d60e1071b05d7 /js/tests
parentb36134664907e195278ab73c5afc0f42e7918df6 (diff)
also translate title, fix #350
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/controllers/feedcontrollerSpec.coffee4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/tests/controllers/feedcontrollerSpec.coffee b/js/tests/controllers/feedcontrollerSpec.coffee
index 2d51000ea..13ce1bb44 100644
--- a/js/tests/controllers/feedcontrollerSpec.coffee
+++ b/js/tests/controllers/feedcontrollerSpec.coffee
@@ -79,6 +79,8 @@ describe 'FeedController', ->
it 'should set the window title to the total unread count', =>
+ @scope.translations =
+ appName: 'News'
expect(@$window.document.title).toBe('')
@scope.getTotalUnreadCount()
@@ -92,6 +94,8 @@ describe 'FeedController', ->
it 'should show 99+ if in window title when more than 99 unread count', =>
+ @scope.translations =
+ appName: 'News'
item = {id: 3, unreadCount: 1, faviconLink: 'test', url: 'hi'}
item1 = {id: 5, unreadCount: 999, faviconLink: 'test', url: 'his'}
@FeedModel.add(item)