]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix js test 571/head
authorRobin Appelman <robin@icewind.nl>
Tue, 26 Jul 2016 13:10:37 +0000 (15:10 +0200)
committerRobin Appelman <robin@icewind.nl>
Wed, 27 Jul 2016 10:59:43 +0000 (12:59 +0200)
apps/files/tests/js/filelistSpec.js

index 98511fd3d64de0695f1ffce4ffea75a89b488453..97fa9804a22072c4fe67855ee2ea3579ae88c38d 100644 (file)
@@ -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() {