summaryrefslogtreecommitdiffstats
path: root/js/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-23 20:19:06 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-23 20:19:06 +0200
commit0b22611a929fc317c6ad073d2ddf5f198ee836f3 (patch)
treeca3593e76af10dc6a81ed0412c6d0e6434f73331 /js/tests
parent94e24c1e1a53db60e6924b39ad308b6b2d2e8c2b (diff)
more boilerplate
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/unit/controller/NavigationControllerSpec.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/tests/unit/controller/NavigationControllerSpec.js b/js/tests/unit/controller/NavigationControllerSpec.js
index 4d4e4bb10..653dfea26 100644
--- a/js/tests/unit/controller/NavigationControllerSpec.js
+++ b/js/tests/unit/controller/NavigationControllerSpec.js
@@ -100,4 +100,16 @@ describe('NavigationController', () => {
expect(FeedResource.markRead).toHaveBeenCalled();
expect(ItemResource.markRead).toHaveBeenCalled();
}));
+
+
+ it('should mark all read', inject((SettingsResource, $controller) => {
+ let ctrl = $controller('NavigationController', {
+ SettingsResource: SettingsResource,
+ });
+
+ SettingsResource.set('showAll', true);
+
+ expect(ctrl.isShowAll()).toBe(true);
+
+ }));
}); \ No newline at end of file