diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js index 94b52b395e..e3cff35280 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() {