type: 'file',
size: 12,
etag: 'abc',
- permissions: OC.PERMISSION_ALL
+ permissions: OC.PERMISSION_ALL,
+ hasPreview: true
});
expect(files[1]).toEqual({
id: 3,
mtime: 234560000,
size: 58009,
etag: '123',
- permissions: OC.PERMISSION_ALL
+ permissions: OC.PERMISSION_ALL,
+ hasPreview: true
});
expect(files[2]).toEqual({
id: 4,
mtime: 134560000,
size: 250,
etag: '456',
- permissions: OC.PERMISSION_ALL
+ permissions: OC.PERMISSION_ALL,
+ hasPreview: true
});
expect(files[0].id).toEqual(1);
expect(files[0].name).toEqual('One.txt');
type: 'file',
size: 12,
etag: 'abc',
- permissions: OC.PERMISSION_ALL
+ permissions: OC.PERMISSION_ALL,
+ hasPreview: true
});
expect(files[1]).toEqual({
id: 4,
mtime: 134560000,
size: 250,
etag: '456',
- permissions: OC.PERMISSION_ALL
+ permissions: OC.PERMISSION_ALL,
+ hasPreview: true
});
});
describe('Download', function() {