@@ -9,7 +9,6 @@ describe('File creation', () => {
99 test ( 'Valid dav file' , ( ) => {
1010 const file = new File ( {
1111 source : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
12- encodedSource : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
1312 mime : 'image/jpeg' ,
1413 owner : 'emma' ,
1514 mtime : new Date ( Date . UTC ( 2023 , 0 , 1 , 0 , 0 , 0 ) ) ,
@@ -44,7 +43,6 @@ describe('File creation', () => {
4443 test ( 'Valid dav file with root' , ( ) => {
4544 const file = new File ( {
4645 source : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
47- encodedSource : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
4846 mime : 'image/jpeg' ,
4947 owner : 'emma' ,
5048 root : '/files/emma' ,
@@ -72,7 +70,6 @@ describe('File creation', () => {
7270 test ( 'Valid remote file' , ( ) => {
7371 const file = new File ( {
7472 source : 'https://domain.com/Photos/picture.jpg' ,
75- encodedSource : 'https://domain.com/Photos/picture.jpg' ,
7673 mime : 'image/jpeg' ,
7774 owner : null ,
7875 } )
@@ -100,7 +97,6 @@ describe('File data change', () => {
10097 test ( 'Rename a file' , ( ) => {
10198 const file = new File ( {
10299 source : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
103- encodedSource : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
104100 mime : 'image/jpeg' ,
105101 owner : 'emma' ,
106102 mtime : new Date ( Date . UTC ( 2023 , 0 , 1 , 0 , 0 , 0 ) ) ,
@@ -125,7 +121,6 @@ describe('File data change', () => {
125121 test ( 'Moving a file' , ( ) => {
126122 const file = new File ( {
127123 source : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
128- encodedSource : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
129124 mime : 'image/jpeg' ,
130125 owner : 'emma' ,
131126 mtime : new Date ( Date . UTC ( 2023 , 0 , 1 , 0 , 0 , 0 ) ) ,
@@ -150,7 +145,6 @@ describe('File data change', () => {
150145 test ( 'Moving a file to an invalid destination throws' , ( ) => {
151146 const file = new File ( {
152147 source : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
153- encodedSource : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
154148 mime : 'image/jpeg' ,
155149 owner : 'emma' ,
156150 mtime : new Date ( Date . UTC ( 2023 , 0 , 1 , 0 , 0 , 0 ) ) ,
@@ -163,7 +157,6 @@ describe('File data change', () => {
163157 test ( 'Moving a file to a different folder with root' , ( ) => {
164158 const file = new File ( {
165159 source : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
166- encodedSource : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
167160 mime : 'image/jpeg' ,
168161 owner : 'emma' ,
169162 root : '/files/emma' ,
@@ -184,7 +177,6 @@ describe('File data change', () => {
184177 test ( 'Changing status' , ( ) => {
185178 const file = new File ( {
186179 source : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
187- encodedSource : 'https://cloud.domain.com/remote.php/dav/files/emma/Photos/picture.jpg' ,
188180 mime : 'image/jpeg' ,
189181 owner : 'emma' ,
190182 root : '/files/emma' ,
@@ -200,7 +192,6 @@ describe('Altering attributes updates mtime', () => {
200192 test ( 'mtime is updated on existing attribute' , ( ) => {
201193 const file = new File ( {
202194 source : 'https://cloud.domain.com/remote.php/dav/files/emma' ,
203- encodedSource : 'https://cloud.domain.com/remote.php/dav/files/emma' ,
204195 mime : 'image/jpeg' ,
205196 owner : 'emma' ,
206197 mtime : new Date ( Date . UTC ( 1990 , 0 , 1 , 0 , 0 , 0 ) ) ,
@@ -219,7 +210,6 @@ describe('Altering attributes updates mtime', () => {
219210 test ( 'mtime is updated on new attribute' , ( ) => {
220211 const file = new File ( {
221212 source : 'https://cloud.domain.com/remote.php/dav/files/emma' ,
222- encodedSource : 'https://cloud.domain.com/remote.php/dav/files/emma' ,
223213 mime : 'image/jpeg' ,
224214 owner : 'emma' ,
225215 mtime : new Date ( Date . UTC ( 1990 , 0 , 1 , 0 , 0 , 0 ) ) ,
@@ -235,7 +225,6 @@ describe('Altering attributes updates mtime', () => {
235225 test ( 'mtime is updated on deleted attribute' , ( ) => {
236226 const file = new File ( {
237227 source : 'https://cloud.domain.com/remote.php/dav/files/emma' ,
238- encodedSource : 'https://cloud.domain.com/remote.php/dav/files/emma' ,
239228 mime : 'image/jpeg' ,
240229 owner : 'emma' ,
241230 mtime : new Date ( Date . UTC ( 1990 , 0 , 1 , 0 , 0 , 0 ) ) ,
@@ -254,7 +243,6 @@ describe('Altering attributes updates mtime', () => {
254243 test ( 'mtime is NOT updated if not initially defined' , ( ) => {
255244 const file = new File ( {
256245 source : 'https://cloud.domain.com/remote.php/dav/files/emma' ,
257- encodedSource : 'https://cloud.domain.com/remote.php/dav/files/emma' ,
258246 mime : 'image/jpeg' ,
259247 owner : 'emma' ,
260248 attributes : {
0 commit comments