@@ -203,7 +203,7 @@ describe("AuthDebugger", () => {
203203
204204 // Should first discover and save OAuth metadata
205205 expect ( mockDiscoverOAuthMetadata ) . toHaveBeenCalledWith (
206- new URL ( "https://example.com" ) ,
206+ new URL ( "https://example.com/mcp " ) ,
207207 ) ;
208208
209209 // Check that updateAuthState was called with the right info message
@@ -361,7 +361,7 @@ describe("AuthDebugger", () => {
361361 } ) ;
362362
363363 expect ( mockDiscoverOAuthMetadata ) . toHaveBeenCalledWith (
364- new URL ( "https://example.com" ) ,
364+ new URL ( "https://example.com/mcp " ) ,
365365 ) ;
366366 } ) ;
367367
@@ -594,15 +594,15 @@ describe("AuthDebugger", () => {
594594 expect . objectContaining ( {
595595 resourceMetadataError : mockError ,
596596 // Should use the original server URL as fallback
597- authServerUrl : new URL ( "https://example.com" ) ,
597+ authServerUrl : new URL ( "https://example.com/mcp " ) ,
598598 oauthStep : "client_registration" ,
599599 } ) ,
600600 ) ;
601601 } ) ;
602602
603603 // Verify that regular OAuth metadata discovery was still called
604604 expect ( mockDiscoverOAuthMetadata ) . toHaveBeenCalledWith (
605- new URL ( "https://example.com" ) ,
605+ new URL ( "https://example.com/mcp " ) ,
606606 ) ;
607607 } ) ;
608608 } ) ;
0 commit comments