@@ -688,7 +688,7 @@ test('should respect in-source configuration from edge functions', async (t) =>
688
688
} ,
689
689
} )
690
690
. withEdgeFunction ( {
691
- config : ( ) => ( { path : '/hello-1' } ) ,
691
+ config : { path : '/hello-1' } ,
692
692
handler : ( ) => new Response ( 'Hello world' ) ,
693
693
name : 'hello' ,
694
694
} )
@@ -707,7 +707,7 @@ test('should respect in-source configuration from edge functions', async (t) =>
707
707
708
708
await builder
709
709
. withEdgeFunction ( {
710
- config : ( ) => ( { path : '/hello-2' } ) ,
710
+ config : { path : '/hello-2' } ,
711
711
handler : ( ) => new Response ( 'Hello world' ) ,
712
712
name : 'hello' ,
713
713
} )
@@ -739,7 +739,7 @@ test('should respect in-source configuration from internal edge functions', asyn
739
739
} ,
740
740
} )
741
741
. withEdgeFunction ( {
742
- config : ( ) => ( { path : '/internal-1' } ) ,
742
+ config : { path : '/internal-1' } ,
743
743
handler : ( ) => new Response ( 'Hello from an internal function' ) ,
744
744
internal : true ,
745
745
name : 'internal' ,
@@ -759,7 +759,7 @@ test('should respect in-source configuration from internal edge functions', asyn
759
759
760
760
await builder
761
761
. withEdgeFunction ( {
762
- config : ( ) => ( { path : '/internal-2' } ) ,
762
+ config : { path : '/internal-2' } ,
763
763
handler : ( ) => new Response ( 'Hello from an internal function' ) ,
764
764
internal : true ,
765
765
name : 'internal' ,
@@ -796,7 +796,7 @@ test('Serves edge functions with import maps coming from the `functions.deno_imp
796
796
} ,
797
797
} )
798
798
. withEdgeFunction ( {
799
- config : ( ) => ( { path : '/greet' } ) ,
799
+ config : { path : '/greet' } ,
800
800
handler : `import { greet } from "greeter"; export default async () => new Response(greet("Netlify"))` ,
801
801
name : 'greet' ,
802
802
} )
0 commit comments