diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-12 05:35:29 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-12 05:35:29 +0200 |
commit | 748500380e39880e54ee73ebaf5234ddf442e149 (patch) | |
tree | c1a1a58ed39db42b414a9d0f1771d41b1a16e00b /js/tests | |
parent | cc1dc2ed30486780f7ac46141c731dfe2da8e2de (diff) |
only take the url as title if the title is not given
Diffstat (limited to 'js/tests')
-rw-r--r-- | js/tests/unit/service/FeedResourceSpec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/unit/service/FeedResourceSpec.js b/js/tests/unit/service/FeedResourceSpec.js index 5433626e8..78985e3a6 100644 --- a/js/tests/unit/service/FeedResourceSpec.js +++ b/js/tests/unit/service/FeedResourceSpec.js @@ -202,11 +202,11 @@ describe('FeedResource', function () { http.expectPOST('base/feeds', { parentFolderId: 0, url: 'http://hey', - title: 'http://hey' }).respond(200, {}); FeedResource.create('hey', undefined); + expect(FeedResource.get('http://hey').title).toBe('http://hey'); http.flush(); expect(FeedResource.get('http://hey').folderId).toBe(0); |