*/
describe('OCA.Files.FileList tests', function() {
- var testFiles, alertStub, notificationStub, fileList;
+ var testFiles, alertStub, notificationStub, fileList, pageSizeStub;
var bcResizeStub;
/**
size: 250,
etag: '456'
}];
-
+ pageSizeStub = sinon.stub(OCA.File.FileList.prototype, 'pageSize').returns(20);
fileList = new OCA.Files.FileList($('#app-content-files'));
});
afterEach(function() {
notificationStub.restore();
alertStub.restore();
bcResizeStub.restore();
+ pageSizeStub.restore();
});
describe('Getters', function() {
it('Returns the current directory', function() {