diff options
Diffstat (limited to 'js/tests/unit/controller/NavigationControllerSpec.js')
-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); })); |