summaryrefslogtreecommitdiffstats
path: root/js/tests/unit/controller/NavigationControllerSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/controller/NavigationControllerSpec.js')
-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