summaryrefslogtreecommitdiffstats
path: root/js/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-08-29 16:55:32 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-08-29 16:55:32 +0200
commita17700800cf475587ab3d0eb6acee91a56b5b40a (patch)
treeb77e8b509dc3118fa1c01034f491188cdca4e272 /js/tests
parent08ddaba792128f801f8dcab1f52e435ef7984bf1 (diff)
add folder drop down
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/unit/controller/NavigationControllerSpec.js6
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);
+ }));
+
});