@@ -18,7 +18,7 @@ test('get without metadata', async () => {
1818 const tool = new FetchTool ( ) ;
1919
2020 const mockFetchTestData = { } ;
21- const result = await tool . get ( { url : '200' , mockFetchTestData} ) ;
21+ const result = await tool . get ( { url : 'http://example.com/ 200' , mockFetchTestData} ) ;
2222
2323 expect ( result ) . toBeInstanceOf ( Uint8Array ) ;
2424 expect ( mockFetchTestData . headers ) . toBeTruthy ( ) ;
@@ -36,7 +36,7 @@ test('get with metadata', async () => {
3636 setMetadata ( RequestMetadata . RunId , 5678 ) ;
3737
3838 const mockFetchTestData = { } ;
39- const result = await tool . get ( { url : '200' , mockFetchTestData} ) ;
39+ const result = await tool . get ( { url : 'http://example.com/ 200' , mockFetchTestData} ) ;
4040
4141 expect ( result ) . toBeInstanceOf ( Uint8Array ) ;
4242 expect ( mockFetchTestData . headers ) . toBeTruthy ( ) ;
@@ -50,7 +50,7 @@ test('send without metadata', async () => {
5050 const tool = new FetchTool ( ) ;
5151
5252 const mockFetchTestData = { } ;
53- const result = await tool . send ( { url : '200' , mockFetchTestData} ) ;
53+ const result = await tool . send ( { url : 'http://example.com/ 200' , mockFetchTestData} ) ;
5454
5555 expect ( typeof result ) . toBe ( 'string' ) ;
5656 expect ( mockFetchTestData . headers ) . toBeTruthy ( ) ;
@@ -68,7 +68,7 @@ test('send with metadata', async () => {
6868 setMetadata ( RequestMetadata . RunId , 8765 ) ;
6969
7070 const mockFetchTestData = { } ;
71- const result = await tool . send ( { url : '200' , mockFetchTestData} ) ;
71+ const result = await tool . send ( { url : 'http://example.com/ 200' , mockFetchTestData} ) ;
7272
7373 expect ( typeof result ) . toBe ( 'string' ) ;
7474 expect ( mockFetchTestData . headers ) . toBeTruthy ( ) ;
@@ -90,7 +90,7 @@ test('selectively delete metadata', async () => {
9090
9191 const mockFetchTestData = { } ;
9292
93- const result1 = await tool . send ( { url : '200' , mockFetchTestData} ) ;
93+ const result1 = await tool . send ( { url : 'http://example.com/ 200' , mockFetchTestData} ) ;
9494 expect ( typeof result1 ) . toBe ( 'string' ) ;
9595 expect ( mockFetchTestData . headers ) . toBeTruthy ( ) ;
9696
@@ -101,7 +101,7 @@ test('selectively delete metadata', async () => {
101101 // remove the Project ID from metadata
102102 unsetMetadata ( RequestMetadata . ProjectId ) ;
103103
104- const result2 = await tool . send ( { url : '200' , mockFetchTestData} ) ;
104+ const result2 = await tool . send ( { url : 'http://example.com/ 200' , mockFetchTestData} ) ;
105105 expect ( typeof result2 ) . toBe ( 'string' ) ;
106106 expect ( mockFetchTestData . headers ) . toBeTruthy ( ) ;
107107
@@ -121,7 +121,7 @@ test('metadata has case-insensitive keys', async () => {
121121 const tool = new FetchTool ( ) ;
122122
123123 const mockFetchTestData = { } ;
124- await tool . get ( { url : '200' , mockFetchTestData} ) ;
124+ await tool . get ( { url : 'http://example.com/ 200' , mockFetchTestData} ) ;
125125
126126 expect ( mockFetchTestData . headers ) . toBeTruthy ( ) ;
127127 expect ( mockFetchTestData . headersCount ) . toBe ( 1 ) ;
0 commit comments