@@ -58,14 +58,14 @@ describe('Functions.invoke', () => {
5858 it ( 'uses subhosting URL when functionsUrl is configured' , async ( ) => {
5959 const fetchFn = vi . fn ( ) . mockResolvedValue ( jsonRes ( 200 , { ok : true } ) ) ;
6060 const http = makeHttp ( fetchFn ) ;
61- const fns = new Functions ( http , 'https://app.functions .insforge.app' ) ;
61+ const fns = new Functions ( http , 'https://app.function2 .insforge.app' ) ;
6262
6363 const result = await fns . invoke ( 'hello' , { body : { x : 1 } } ) ;
6464
6565 expect ( result ) . toEqual ( { data : { ok : true } , error : null } ) ;
6666 expect ( fetchFn ) . toHaveBeenCalledOnce ( ) ;
6767 const calledUrl = fetchFn . mock . calls [ 0 ] [ 0 ] ;
68- expect ( String ( calledUrl ) ) . toBe ( 'https://app.functions .insforge.app/hello' ) ;
68+ expect ( String ( calledUrl ) ) . toBe ( 'https://app.function2 .insforge.app/hello' ) ;
6969 } ) ;
7070
7171 it ( 'falls back to proxy when subhosting returns 404' , async ( ) => {
@@ -74,7 +74,7 @@ describe('Functions.invoke', () => {
7474 . mockResolvedValueOnce ( jsonRes ( 404 , { error : 'NOT_FOUND' , message : 'no' } , 'Not Found' ) )
7575 . mockResolvedValueOnce ( jsonRes ( 200 , { proxied : true } ) ) ;
7676 const http = makeHttp ( fetchFn ) ;
77- const fns = new Functions ( http , 'https://app.functions .insforge.app' ) ;
77+ const fns = new Functions ( http , 'https://app.function2 .insforge.app' ) ;
7878
7979 const result = await fns . invoke ( 'hello' ) ;
8080
@@ -96,7 +96,7 @@ describe('Functions.invoke', () => {
9696 } ,
9797 makeTokenManager ( )
9898 ) ;
99- const fns = new Functions ( http , 'https://app.functions .insforge.app' ) ;
99+ const fns = new Functions ( http , 'https://app.function2 .insforge.app' ) ;
100100 const dispatch = vi . fn ( ) . mockResolvedValue ( jsonRes ( 200 , { ok : 1 } ) ) ;
101101 ( globalThis as any ) . __insforge_dispatch__ = dispatch ;
102102
@@ -216,7 +216,7 @@ describe('Functions.invoke', () => {
216216 } ,
217217 makeTokenManager ( )
218218 ) ;
219- const fns = new Functions ( http , 'https://app-b.functions .insforge.app' ) ;
219+ const fns = new Functions ( http , 'https://app-b.function2 .insforge.app' ) ;
220220 const dispatch = vi . fn ( ) ;
221221 ( globalThis as any ) . __insforge_dispatch__ = dispatch ;
222222
@@ -225,7 +225,7 @@ describe('Functions.invoke', () => {
225225 expect ( result ) . toEqual ( { data : { remote : true } , error : null } ) ;
226226 expect ( dispatch ) . not . toHaveBeenCalled ( ) ;
227227 expect ( fetchFn ) . toHaveBeenCalledOnce ( ) ;
228- expect ( String ( fetchFn . mock . calls [ 0 ] [ 0 ] ) ) . toBe ( 'https://app-b.functions .insforge.app/hello' ) ;
228+ expect ( String ( fetchFn . mock . calls [ 0 ] [ 0 ] ) ) . toBe ( 'https://app-b.function2 .insforge.app/hello' ) ;
229229 } ) ;
230230 } ) ;
231231} ) ;
0 commit comments