diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-12 03:03:44 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-12 03:03:44 +0200 |
commit | 761412ebaaf0930499ca26e7acdd0965be5a50ae (patch) | |
tree | 24c62f2b64e12d92e339c16f96fb1f01dae7972c /js/tests/unit/controller | |
parent | 1a04a1c73540be7c7294ef86b92df65bd91c5fc8 (diff) |
create folders!
Diffstat (limited to 'js/tests/unit/controller')
-rw-r--r-- | js/tests/unit/controller/NavigationControllerSpec.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/tests/unit/controller/NavigationControllerSpec.js b/js/tests/unit/controller/NavigationControllerSpec.js index 23f1b3522..87b45e94c 100644 --- a/js/tests/unit/controller/NavigationControllerSpec.js +++ b/js/tests/unit/controller/NavigationControllerSpec.js @@ -287,7 +287,15 @@ describe('NavigationController', function () { FolderResource) { expect(controller.folderNameExists('hi')).toBe(false); FolderResource.add({name: 'hi'}); - expect(controller.folderNameExists('hi')).toBe(true); + expect(controller.folderNameExists(' hi ')).toBe(true); + })); + + it('should expose check if a feed url exists', inject(function ( + FeedResource) { + expect(controller.feedUrlExists('hi')).toBe(false); + FeedResource.add({url: 'http://hi'}); + expect(controller.feedUrlExists('hi ')).toBe(true); + expect(controller.feedUrlExists('http://hi')).toBe(true); })); |