summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-07-26 15:10:37 +0200
committerRobin Appelman <robin@icewind.nl>2016-07-27 12:59:43 +0200
commitc662e4b983dafa0f0262ed3a53459bfe0094c83a (patch)
treee09a186c25ae0d1fd39e915117a32bcfab903041 /apps/files/tests
parent6368506e5735e2bee4c1ae7280ee2bafacfaccd7 (diff)
downloadnextcloud-server-c662e4b983dafa0f0262ed3a53459bfe0094c83a.tar.gz
nextcloud-server-c662e4b983dafa0f0262ed3a53459bfe0094c83a.zip
fix js test
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/filelistSpec.js15
1 files changed, 10 insertions, 5 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js
index 98511fd3d64..97fa9804a22 100644
--- a/apps/files/tests/js/filelistSpec.js
+++ b/apps/files/tests/js/filelistSpec.js
@@ -1792,7 +1792,8 @@ describe('OCA.Files.FileList tests', function() {
type: 'file',
size: 12,
etag: 'abc',
- permissions: OC.PERMISSION_ALL
+ permissions: OC.PERMISSION_ALL,
+ hasPreview: true
});
expect(files[1]).toEqual({
id: 3,
@@ -1802,7 +1803,8 @@ describe('OCA.Files.FileList tests', function() {
mtime: 234560000,
size: 58009,
etag: '123',
- permissions: OC.PERMISSION_ALL
+ permissions: OC.PERMISSION_ALL,
+ hasPreview: true
});
expect(files[2]).toEqual({
id: 4,
@@ -1812,7 +1814,8 @@ describe('OCA.Files.FileList tests', function() {
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');
@@ -1833,7 +1836,8 @@ describe('OCA.Files.FileList tests', function() {
type: 'file',
size: 12,
etag: 'abc',
- permissions: OC.PERMISSION_ALL
+ permissions: OC.PERMISSION_ALL,
+ hasPreview: true
});
expect(files[1]).toEqual({
id: 4,
@@ -1843,7 +1847,8 @@ describe('OCA.Files.FileList tests', function() {
mtime: 134560000,
size: 250,
etag: '456',
- permissions: OC.PERMISSION_ALL
+ permissions: OC.PERMISSION_ALL,
+ hasPreview: true
});
});
describe('Download', function() {