diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-21 13:53:36 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-21 13:53:47 +0100 |
commit | 8ddead06277f7c863fe048e9990d4c9ce0c24424 (patch) | |
tree | 699416065dcf10871bf416164f36f1d05a03a480 /js/tests/unit/controller | |
parent | 3306d28e2d45fa03c2ca5b93de45ad59e7aad3f0 (diff) |
fix #660
Diffstat (limited to 'js/tests/unit/controller')
-rw-r--r-- | js/tests/unit/controller/ExploreControllerSpec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tests/unit/controller/ExploreControllerSpec.js b/js/tests/unit/controller/ExploreControllerSpec.js index 977ab5c32..0df9dc82b 100644 --- a/js/tests/unit/controller/ExploreControllerSpec.js +++ b/js/tests/unit/controller/ExploreControllerSpec.js @@ -55,7 +55,7 @@ describe('ExploreController', function () { it('should check if a feed is available sites', inject( function (FeedResource) { - FeedResource.add({id: 3, url: 'test'}); + FeedResource.add({id: 3, location: 'test', url: 'a'}); expect(controller.feedExists('test')).toBe(true); expect(controller.feedExists('amen')).toBe(false); })); @@ -63,10 +63,10 @@ describe('ExploreController', function () { it('should hide categories without unadded sites', inject( function (FeedResource) { - FeedResource.add({id: 3, url: 'test'}); + FeedResource.add({id: 3, location: 'test', url: 'a'}); - var data1 = [{url: 'test'}, {url: 'test2'}]; - var data2 = [{url: 'test'}]; + var data1 = [{feed: 'test'}, {feed: 'test2'}]; + var data2 = [{feed: 'test'}]; expect(controller.isCategoryShown(data1)).toBe(true); expect(controller.isCategoryShown(data2)).toBe(false); |