From a17700800cf475587ab3d0eb6acee91a56b5b40a Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 29 Aug 2014 16:55:32 +0200 Subject: add folder drop down --- js/tests/unit/controller/NavigationControllerSpec.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js/tests') 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); + })); + }); -- cgit v1.2.3