diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-12 05:28:09 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-12 05:28:09 +0200 |
commit | cc1dc2ed30486780f7ac46141c731dfe2da8e2de (patch) | |
tree | 46525f7898928fbfffa13b9e1f08754b68fd5e88 /js/tests/unit/service/FeedResourceSpec.js | |
parent | 2c161c47ece07732b0cd1a5a0ea9e8f25bf44441 (diff) |
working on creating folders
Diffstat (limited to 'js/tests/unit/service/FeedResourceSpec.js')
-rw-r--r-- | js/tests/unit/service/FeedResourceSpec.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/js/tests/unit/service/FeedResourceSpec.js b/js/tests/unit/service/FeedResourceSpec.js index 0878a4954..5433626e8 100644 --- a/js/tests/unit/service/FeedResourceSpec.js +++ b/js/tests/unit/service/FeedResourceSpec.js @@ -156,7 +156,7 @@ describe('FeedResource', function () { http.expectPOST('base/feeds', { parentFolderId: 5, url: 'http://hey', - title: 'ABC' + title: 'abc' }).respond(200, {}); FeedResource.create(' hey ', 5, ' abc'); @@ -171,7 +171,7 @@ describe('FeedResource', function () { http.expectPOST('base/feeds', { parentFolderId: 5, url: 'http://hey', - title: 'ABC' + title: 'abc' }).respond(200, {}); FeedResource.create('http://hey', 5, 'abc'); @@ -186,7 +186,7 @@ describe('FeedResource', function () { http.expectPOST('base/feeds', { parentFolderId: 5, url: 'https://hey', - title: 'ABC' + title: 'abc' }).respond(400, {message: 'noo'}); FeedResource.create('https://hey', 5, 'abc'); @@ -202,16 +202,14 @@ describe('FeedResource', function () { http.expectPOST('base/feeds', { parentFolderId: 0, url: 'http://hey', - title: 'ABC' + title: 'http://hey' }).respond(200, {}); - FeedResource.create('hey', undefined, 'abc'); + FeedResource.create('hey', undefined); http.flush(); expect(FeedResource.get('http://hey').folderId).toBe(0); - expect(FeedResource.get('http://hey').faviconLink).toBe( - '/base/apps/news/css/loading.gif'); })); |