diff options
Diffstat (limited to 'js/tests/unit/controller/ContentControllerSpec.js')
-rw-r--r-- | js/tests/unit/controller/ContentControllerSpec.js | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/js/tests/unit/controller/ContentControllerSpec.js b/js/tests/unit/controller/ContentControllerSpec.js index bdea6e16a..097744083 100644 --- a/js/tests/unit/controller/ContentControllerSpec.js +++ b/js/tests/unit/controller/ContentControllerSpec.js @@ -279,18 +279,18 @@ describe('ContentController', function () { Publisher.subscribe(ItemResource).toChannels(['items']); ItemResource.autoPage = jasmine.createSpy('autoPage') - .andCallFake(function () { - return { - success: function (callback) { - callback({ - 'items': [] - }); - - return { - error: function () {} - }; - } - }; + .andCallFake(function () { + return { + success: function (callback) { + callback({ + 'items': [] + }); + + return { + error: function () {} + }; + } + }; }); var ctrl = $controller('ContentController', { @@ -329,18 +329,18 @@ describe('ContentController', function () { Publisher.subscribe(ItemResource).toChannels(['items']); ItemResource.autoPage = jasmine.createSpy('autoPage') - .andCallFake(function () { - return { - success: function (callback) { - callback({ - 'items': [{items: [{id: 3}]}] - }); - - return { - error: function () {} - }; - } - }; + .andCallFake(function () { + return { + success: function (callback) { + callback({ + 'items': [{items: [{id: 3}]}] + }); + + return { + error: function () {} + }; + } + }; }); var ctrl = $controller('ContentController', { @@ -377,20 +377,20 @@ describe('ContentController', function () { Publisher.subscribe(ItemResource).toChannels(['items']); ItemResource.autoPage = jasmine.createSpy('autoPage') - .andCallFake(function () { - return { - success: function (callback) { - callback({ - 'items': [] - }); - - return { - error: function (callback) { - callback(); - } - }; - } - }; + .andCallFake(function () { + return { + success: function (callback) { + callback({ + 'items': [] + }); + + return { + error: function (callback) { + callback(); + } + }; + } + }; }); var ctrl = $controller('ContentController', { |