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.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/tests/unit/controller/NavigationControllerSpec.js b/js/tests/unit/controller/NavigationControllerSpec.js
index 433a40e3f..adefd157f 100644
--- a/js/tests/unit/controller/NavigationControllerSpec.js
+++ b/js/tests/unit/controller/NavigationControllerSpec.js
@@ -111,6 +111,19 @@ describe('NavigationController', () => {
SettingsResource.set('showAll', true);
expect(ctrl.isShowAll()).toBe(true);
+ }));
+
+ it('should get all of folder', inject((FeedResource, $controller) => {
+ let ctrl = $controller('NavigationController', {
+ FeedResource: FeedResource,
+ });
+
+ FeedResource.getByFolderId = jasmine.createSpy('getByFolderId');
+ ctrl.getFeedsOfFolder(3);
+
+ expect(FeedResource.getByFolderId).toHaveBeenCalledWith(3);
}));
+
+
}); \ No newline at end of file