@@ -11,8 +11,8 @@ describe("urlToServerConfig", () => {
1111
1212 for ( const url of urls ) {
1313 const config = urlToServerConfig ( url , TOKEN ) ;
14- expect ( config . type ) . toBe ( "streamableHttp " ) ;
15- if ( config . type === "streamableHttp " ) {
14+ expect ( config . type ) . toBe ( "http " ) ;
15+ if ( config . type === "http " ) {
1616 expect ( config . config . url ) . toBe ( url ) ;
1717 }
1818 }
@@ -46,7 +46,7 @@ describe("urlToServerConfig", () => {
4646
4747 for ( const url of urls ) {
4848 const config = urlToServerConfig ( url , TOKEN ) ;
49- if ( config . type === "streamableHttp " ) {
49+ if ( config . type === "http " ) {
5050 const authHeader = config . config . options ?. requestInit ?. headers as Record < string , string > | undefined ;
5151 expect ( authHeader ?. Authorization ) . toBe ( `Bearer ${ TOKEN } ` ) ;
5252 } else if ( config . type === "sse" ) {
@@ -66,7 +66,7 @@ describe("urlToServerConfig", () => {
6666
6767 for ( const url of urls ) {
6868 const config = urlToServerConfig ( url , TOKEN ) ;
69- if ( config . type === "streamableHttp " ) {
69+ if ( config . type === "http " ) {
7070 const authHeader = config . config . options ?. requestInit ?. headers as Record < string , string > | undefined ;
7171 expect ( authHeader ?. Authorization ) . toBe ( `Bearer ${ TOKEN } ` ) ;
7272 } else if ( config . type === "sse" ) {
@@ -86,7 +86,7 @@ describe("urlToServerConfig", () => {
8686
8787 for ( const url of urls ) {
8888 const config = urlToServerConfig ( url , TOKEN ) ;
89- if ( config . type === "streamableHttp " || config . type === "sse" ) {
89+ if ( config . type === "http " || config . type === "sse" ) {
9090 expect ( config . config . options ) . toBeUndefined ( ) ;
9191 }
9292 }
@@ -97,7 +97,7 @@ describe("urlToServerConfig", () => {
9797
9898 for ( const url of urls ) {
9999 const config = urlToServerConfig ( url ) ; // No token provided
100- if ( config . type === "streamableHttp " || config . type === "sse" ) {
100+ if ( config . type === "http " || config . type === "sse" ) {
101101 expect ( config . config . options ) . toBeUndefined ( ) ;
102102 }
103103 }
0 commit comments