File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -487,12 +487,17 @@ describe('Automatic Internal Route Detection', () => {
487487 cleanupEnvVars = setupEnvVars ( { NEXT_PUBLIC_APP_URL : 'http://localhost:3000' } )
488488
489489 mockValidateUrlWithDNS . mockResolvedValue ( { isValid : true , resolvedIP : '93.184.216.34' } )
490- mockSecureFetchWithPinnedIP . mockResolvedValue (
491- new Response ( JSON . stringify ( { } ) , {
492- status : 200 ,
493- headers : { 'content-type' : 'application/json' } ,
494- } )
495- )
490+ mockSecureFetchWithPinnedIP . mockResolvedValue ( {
491+ ok : true ,
492+ status : 200 ,
493+ statusText : 'OK' ,
494+ headers : {
495+ get : ( name : string ) => ( name . toLowerCase ( ) === 'content-type' ? 'application/json' : null ) ,
496+ toRecord : ( ) => ( { 'content-type' : 'application/json' } ) ,
497+ } ,
498+ text : async ( ) => JSON . stringify ( { } ) ,
499+ json : async ( ) => ( { } ) ,
500+ } )
496501 } )
497502
498503 afterEach ( ( ) => {
You can’t perform that action at this time.
0 commit comments