From 5033fc4e5249d996800af64afc6488088f3fc220 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Wed, 15 Oct 2014 15:09:01 +0200 Subject: [PATCH] Stub for pageSize, because now it is dynamically calculated --- apps/files/tests/js/filelistSpec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js index 94b52b395e5..e3cff352803 100644 --- a/apps/files/tests/js/filelistSpec.js +++ b/apps/files/tests/js/filelistSpec.js @@ -20,7 +20,7 @@ */ describe('OCA.Files.FileList tests', function() { - var testFiles, alertStub, notificationStub, fileList; + var testFiles, alertStub, notificationStub, fileList, pageSizeStub; var bcResizeStub; /** @@ -120,7 +120,7 @@ describe('OCA.Files.FileList tests', function() { size: 250, etag: '456' }]; - + pageSizeStub = sinon.stub(OCA.File.FileList.prototype, 'pageSize').returns(20); fileList = new OCA.Files.FileList($('#app-content-files')); }); afterEach(function() { @@ -130,6 +130,7 @@ describe('OCA.Files.FileList tests', function() { notificationStub.restore(); alertStub.restore(); bcResizeStub.restore(); + pageSizeStub.restore(); }); describe('Getters', function() { it('Returns the current directory', function() { -- 2.39.5