diff options
Diffstat (limited to 'js/tests/services')
-rw-r--r-- | js/tests/services/businesslayer/feedbusinesslayerSpec.coffee | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee b/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee index 1ee9aaa3d..476d74d30 100644 --- a/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee +++ b/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee @@ -255,28 +255,13 @@ describe 'FeedBusinessLayer', -> feed = @FeedModel.getByUrlHash(hash) - expect(feed.title).toBe('google.de') + expect(feed.title).toBe('www.google.de') expect(feed.url).toBe(url) expect(feed.urlHash).toBe(hash) expect(feed.folderId).toBe(0) expect(feed.unreadCount).toBe(0) expect(@imagePath).toHaveBeenCalledWith('core', 'loading.gif') - it 'should transform urls correctly', => - urls = [ - 'www.google.de' - 'www.google.de/' - 'google.de' - 'http://google.de' - 'http://www.google.de/' - ] - for url in urls - @FeedModel.clear() - @FeedBusinessLayer.create(url) - hash = hex_md5(url) - feed = @FeedModel.getByUrlHash(hash) - expect(feed.title).toBe('google.de') - it 'should make a create feed request', => @persistence.createFeed = jasmine.createSpy('add feed') |