@@ -248,7 +248,7 @@ describe('params reached to function', () => {
248248 'custom-header' : customHeader ,
249249 Authorization : `Bearer ${ apiKey } ` ,
250250 } ,
251- region : FunctionRegion . Any
251+ region : FunctionRegion . Any ,
252252 } )
253253
254254 log ( 'assert no error' )
@@ -278,23 +278,25 @@ describe('params reached to function', () => {
278278 * @feature headers
279279 */
280280 log ( 'create FunctionsClient' )
281- const fclient = new FunctionsClient ( `http://localhost:${ relay . container . getMappedPort ( 8081 ) } ` , { region : FunctionRegion . ApNortheast1 } )
281+ const fclient = new FunctionsClient ( `http://localhost:${ relay . container . getMappedPort ( 8081 ) } ` , {
282+ region : FunctionRegion . ApNortheast1 ,
283+ } )
282284
283285 log ( 'invoke mirror' )
284286 const customHeader = nanoid ( )
285-
286287
287288 const { data, error } = await fclient . invoke < MirrorResponse > ( 'mirror' , {
288289 headers : {
289290 'custom-header' : customHeader ,
290- Authorization : `Bearer ${ apiKey } `
291+ Authorization : `Bearer ${ apiKey } ` ,
291292 } ,
292293 } )
293294
294295 log ( 'assert no error' )
295296 expect (
296- ( data ?. headers as [ Array < string > ] ) . filter ( ( [ k , v ] ) => k === 'x-region' && v === FunctionRegion . ApNortheast1 )
297- . length > 0
297+ ( data ?. headers as [ Array < string > ] ) . filter (
298+ ( [ k , v ] ) => k === 'x-region' && v === FunctionRegion . ApNortheast1
299+ ) . length > 0
298300 ) . toBe ( true )
299301 } )
300302
0 commit comments