@@ -151,14 +151,6 @@ describe('Transloadit', () => {
151151 it ( 'should append all required fields to the request form' , ( ) => {
152152 const client = new Transloadit ( { authKey : 'foo_key' , authSecret : 'foo_secret' } )
153153
154- const stream1 = new Readable ( )
155- const stream2 = new Readable ( )
156-
157- const streamsMap = {
158- stream1 : { stream : stream1 } ,
159- stream2 : { stream : stream2 } ,
160- }
161-
162154 const form = new FormData ( )
163155 const params = { }
164156 const fields = {
@@ -170,7 +162,7 @@ describe('Transloadit', () => {
170162 const formAppendSpy = vi . spyOn ( form , 'append' )
171163
172164 // @ts -expect-error This tests private internals
173- client . _appendForm ( form , params , streamsMap , fields )
165+ client . _appendForm ( form , params , fields )
174166
175167 expect ( calcSignatureSpy ) . toHaveBeenCalledWith ( params )
176168
@@ -181,8 +173,6 @@ describe('Transloadit', () => {
181173 'signature' ,
182174 'sha384:f146533532844d4f4e34221288be08e14a2779eeb802a35afa6a193762f58da95d2423a825aa4cb4c7420e25f75a5c90' ,
183175 ] ,
184- [ 'stream1' , stream1 , { filename : 'stream1' } ] ,
185- [ 'stream2' , stream2 , { filename : 'stream2' } ] ,
186176 ] )
187177 } )
188178 } )
@@ -282,8 +272,6 @@ describe('Transloadit', () => {
282272
283273 expect ( spy ) . toBeCalledWith (
284274 expect . objectContaining ( { timeout : 24 * 60 * 60 * 1000 } ) ,
285- { } ,
286- expect . any ( Function )
287275 )
288276 } )
289277
0 commit comments