summaryrefslogtreecommitdiffstats
path: root/js/tests/unit/controller/ContentControllerSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/controller/ContentControllerSpec.js')
-rw-r--r--js/tests/unit/controller/ContentControllerSpec.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/tests/unit/controller/ContentControllerSpec.js b/js/tests/unit/controller/ContentControllerSpec.js
index a157cd2d1..515265bc3 100644
--- a/js/tests/unit/controller/ContentControllerSpec.js
+++ b/js/tests/unit/controller/ContentControllerSpec.js
@@ -270,7 +270,8 @@ describe('ContentController', function () {
it('should not autopage if less than 0 elements', inject(function (
- $controller, ItemResource, Publisher) {
+ $controller, ItemResource, Publisher, SettingsResource) {
+ SettingsResource.set('oldestFirst', true);
var $route = {
current: {
@@ -305,6 +306,7 @@ describe('ContentController', function () {
$route: $route,
Publisher: Publisher,
ItemResource: ItemResource,
+ SettingsResource: SettingsResource,
data: {},
});
@@ -314,7 +316,7 @@ describe('ContentController', function () {
expect(ctrl.autoPagingEnabled()).toBe(false);
- expect(ItemResource.autoPage).toHaveBeenCalledWith(3, 2);
+ expect(ItemResource.autoPage).toHaveBeenCalledWith(3, 2, true);
}));