Stub for pageSize, because now it is dynamically calculated
This commit is contained in:
parent
9de874f015
commit
5033fc4e52
1 changed files with 3 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue