Changed fileList.pageSize to function call

This commit is contained in:
Nazar Mokrynskyi 2014-10-15 19:18:35 +02:00
parent 63145f5765
commit 8198e70f24
1 changed files with 1 additions and 1 deletions

View File

@ -815,7 +815,7 @@ describe('OCA.Files.FileList tests', function() {
fileList.$fileList.on('fileActionsReady', handler);
fileList._nextPage();
expect(handler.calledOnce).toEqual(true);
expect(handler.getCall(0).args[0].$files.length).toEqual(fileList.pageSize);
expect(handler.getCall(0).args[0].$files.length).toEqual(fileList.pageSize());
});
it('does not trigger "fileActionsReady" event after single add with silent argument', function() {
var handler = sinon.stub();