diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-08-29 16:55:32 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-08-29 16:55:32 +0200 |
commit | a17700800cf475587ab3d0eb6acee91a56b5b40a (patch) | |
tree | b77e8b509dc3118fa1c01034f491188cdca4e272 /js/tests/unit | |
parent | 08ddaba792128f801f8dcab1f52e435ef7984bf1 (diff) |
add folder drop down
Diffstat (limited to 'js/tests/unit')
-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); + })); + }); |