diff options
Diffstat (limited to 'js/tests')
-rw-r--r-- | js/tests/unit/controller/NavigationControllerSpec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tests/unit/controller/NavigationControllerSpec.js b/js/tests/unit/controller/NavigationControllerSpec.js index 1cfbb4012..8c646640f 100644 --- a/js/tests/unit/controller/NavigationControllerSpec.js +++ b/js/tests/unit/controller/NavigationControllerSpec.js @@ -280,4 +280,10 @@ describe('NavigationController', () => { })); + it('should expose check if folder exists', inject((FolderResource) => { + expect(controller.folderNameExists('hi')).toBe(false); + FolderResource.add({name: 'hi'}); + expect(controller.folderNameExists('hi')).toBe(true); + })); + }); |