@@ -42,7 +42,6 @@ describe("CrossPlatformFormData", () => {
4242
4343 it ( "should append a File with a specified filename" , async ( ) => {
4444 const filename = "testfile.txt" ;
45- // @ts -expect-error
4645 const value = new ( await import ( "buffer" ) ) . File ( [ "file content" ] , filename ) ;
4746
4847 await formData . appendFile ( "file" , value ) ;
@@ -58,7 +57,6 @@ describe("CrossPlatformFormData", () => {
5857
5958 it ( "should append a File with an explicit filename" , async ( ) => {
6059 const filename = "testfile.txt" ;
61- // @ts -expect-error
6260 const value = new ( await import ( "buffer" ) ) . File ( [ "file content" ] , filename ) ;
6361
6462 await formData . appendFile ( "file" , value , "test.txt" ) ;
@@ -104,7 +102,6 @@ describe("CrossPlatformFormData", () => {
104102
105103 it ( "should append a File with a specified filename" , async ( ) => {
106104 const filename = "testfile.txt" ;
107- // @ts -expect-error
108105 const value = new ( await import ( "buffer" ) ) . File ( [ "file content" ] , filename ) ;
109106
110107 await formData . appendFile ( "file" , value ) ;
@@ -115,7 +112,6 @@ describe("CrossPlatformFormData", () => {
115112
116113 it ( "should append a File with an explicit filename" , async ( ) => {
117114 const filename = "testfile.txt" ;
118- // @ts -expect-error
119115 const value = new ( await import ( "buffer" ) ) . File ( [ "file content" ] , filename ) ;
120116
121117 await formData . appendFile ( "file" , value , "test.txt" ) ;
0 commit comments