diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-30 22:19:26 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-30 22:19:26 +0200 |
commit | 35d0d8750e579c40a05f46c0e29cafce9123ae60 (patch) | |
tree | 03a2641ca8fed4baa7682cc5c87ddc47b7b99df8 /js/tests/unit/controller/NavigationControllerSpec.js | |
parent | e9a2c6bac0dceeffb86e9fb50802af945555d565 (diff) |
more additions
Diffstat (limited to 'js/tests/unit/controller/NavigationControllerSpec.js')
-rw-r--r-- | js/tests/unit/controller/NavigationControllerSpec.js | 13 |
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 |