summaryrefslogtreecommitdiffstats
path: root/js/tests/unit/controller/ContentControllerSpec.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-13 16:58:38 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-13 16:58:38 +0200
commit08df2433cad543587458a64a0b81122e1f966cb8 (patch)
tree466125e54bba6ca99bf695a4274722c7284fa36e /js/tests/unit/controller/ContentControllerSpec.js
parent11c4b03d70583d8b4c7e7bce408a3c3a3d9c1f17 (diff)
autopaging
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);
}));