summaryrefslogtreecommitdiffstats
path: root/js/tests/unit/controller
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/controller')
-rw-r--r--js/tests/unit/controller/AppControllerSpec.js8
-rw-r--r--js/tests/unit/controller/ContentControllerSpec.js8
2 files changed, 9 insertions, 7 deletions
diff --git a/js/tests/unit/controller/AppControllerSpec.js b/js/tests/unit/controller/AppControllerSpec.js
index b7dad7492..d44d8b0c3 100644
--- a/js/tests/unit/controller/AppControllerSpec.js
+++ b/js/tests/unit/controller/AppControllerSpec.js
@@ -29,15 +29,15 @@ describe('AppController', function () {
}));
- it('should expose set firstrun if feeds', inject(function (Feed) {
- Feed.add({url: 'test'});
+ it('should expose set firstrun if feeds', inject(function (FeedResource) {
+ FeedResource.add({url: 'test'});
expect(controller.isFirstRun()).toBe(false);
}));
- it('should expose set firstrun if folders', inject(function (Folder) {
- Folder.add({name: 'test'});
+ it('should expose set firstrun if folders', inject(function (FolderResource) {
+ FolderResource.add({name: 'test'});
expect(controller.isFirstRun()).toBe(false);
}));
diff --git a/js/tests/unit/controller/ContentControllerSpec.js b/js/tests/unit/controller/ContentControllerSpec.js
index 9e3693e86..c99cb79ab 100644
--- a/js/tests/unit/controller/ContentControllerSpec.js
+++ b/js/tests/unit/controller/ContentControllerSpec.js
@@ -13,9 +13,11 @@ describe('ContentController', function () {
beforeEach(module('News'));
- it('should publish data to models', inject(function ($controller, Publisher, Feed, Item) {
- Publisher.subscribe(Item).toChannels('items');
- Publisher.subscribe(Feed).toChannels('feeds');
+ it('should publish data to models', inject(function ($controller, Publisher,
+ FeedResource, ItemResource) {
+
+ Publisher.subscribe(ItemResource).toChannels('items');
+ Publisher.subscribe(FeedResource).toChannels('feeds');
var controller = $controller('ContentController', {
data: {