@@ -125,10 +125,10 @@ describe('<Files> Browser', function() {
125125 } )
126126
127127 expect ( req1 . body ) . to . be . instanceof ( BrowserFormData )
128- expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( file )
128+ expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
129129
130130 expect ( req2 . body ) . to . be . instanceof ( BrowserFormData )
131- expect ( req2 . body . get ( 'file' ) ) . to . be . equal ( file )
131+ expect ( req2 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
132132 } )
133133
134134 it ( 'uploads a file instance of File without name' , async ( ) => {
@@ -153,10 +153,10 @@ describe('<Files> Browser', function() {
153153 } )
154154
155155 expect ( req1 . body ) . to . be . instanceof ( BrowserFormData )
156- expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( file )
156+ expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
157157
158158 expect ( req2 . body ) . to . be . instanceof ( BrowserFormData )
159- expect ( req2 . body . get ( 'file' ) ) . to . be . equal ( file )
159+ expect ( req2 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
160160 } )
161161
162162 it ( 'uploads a file instance of File and name in path' , async ( ) => {
@@ -181,10 +181,10 @@ describe('<Files> Browser', function() {
181181 } )
182182
183183 expect ( req1 . body ) . to . be . instanceof ( BrowserFormData )
184- expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( file )
184+ expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
185185
186186 expect ( req2 . body ) . to . be . instanceof ( BrowserFormData )
187- expect ( req2 . body . get ( 'file' ) ) . to . be . equal ( file )
187+ expect ( req2 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
188188 } )
189189
190190 it ( 'uploads a file instance of Blob without name' , async ( ) => {
@@ -230,7 +230,7 @@ describe('<Files> Browser', function() {
230230 } )
231231
232232 expect ( req1 . body ) . to . be . instanceof ( BrowserFormData )
233- expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( file )
233+ expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
234234 } )
235235
236236 it ( 'uploads a file with overwrite' , async ( ) => {
@@ -397,16 +397,16 @@ describe('<Files> Browser', function() {
397397 } )
398398
399399 expect ( req1 . body ) . to . be . instanceof ( BrowserFormData )
400- expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( file )
400+ expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
401401
402402 expect ( req2 . body ) . to . be . instanceof ( BrowserFormData )
403- expect ( req2 . body . get ( 'file' ) ) . to . be . equal ( file )
403+ expect ( req2 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
404404
405405 expect ( req3 . body ) . to . be . instanceof ( BrowserFormData )
406- expect ( req3 . body . get ( 'file' ) ) . to . be . equal ( file )
406+ expect ( req3 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
407407
408408 expect ( req4 . body ) . to . be . instanceof ( BrowserFormData )
409- expect ( req4 . body . get ( 'file' ) ) . to . be . equal ( file )
409+ expect ( req4 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
410410 } )
411411
412412 it ( 'appends from a File with filePath' , async ( ) => {
@@ -431,10 +431,10 @@ describe('<Files> Browser', function() {
431431 } )
432432
433433 expect ( req1 . body ) . to . be . instanceof ( BrowserFormData )
434- expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( file )
434+ expect ( req1 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
435435
436436 expect ( req2 . body ) . to . be . instanceof ( BrowserFormData )
437- expect ( req2 . body . get ( 'file' ) ) . to . be . equal ( file )
437+ expect ( req2 . body . get ( 'file' ) ) . to . be . equal ( '[object File]' )
438438 } )
439439
440440 it ( 'appends from a ArrayBuffer with fileName and dirPath' , async ( ) => {
0 commit comments