summaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js
diff options
context:
space:
mode:
authorNazar Mokrynskyi <nazar@mokrynskyi.com>2014-10-15 15:09:01 +0200
committerNazar Mokrynskyi <nazar@mokrynskyi.com>2014-10-15 15:09:01 +0200
commit5033fc4e5249d996800af64afc6488088f3fc220 (patch)
tree579fd3a8e633ac911b65a1c11d54c78331deefa6 /apps/files/tests/js
parent9de874f01533522f4c028214e85ff8363e8f2164 (diff)
downloadnextcloud-server-5033fc4e5249d996800af64afc6488088f3fc220.tar.gz
nextcloud-server-5033fc4e5249d996800af64afc6488088f3fc220.zip
Stub for pageSize, because now it is dynamically calculated
Diffstat (limited to 'apps/files/tests/js')
-rw-r--r--apps/files/tests/js/filelistSpec.js5
1 files 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() {