@@ -26,7 +26,7 @@ describe('BoundingBoxTool', () => {
2626 expect ( result . content [ 0 ] ) . toHaveProperty ( 'type' , 'text' ) ;
2727 const textContent = result . content [ 0 ] as TextContent ;
2828 expect ( JSON . parse ( textContent . text ) ) . toEqual ( {
29- data : [ - 73.9857 , 40.7484 , - 73.9857 , 40.7484 ]
29+ data : { bbox : [ - 73.9857 , 40.7484 , - 73.9857 , 40.7484 ] }
3030 } ) ;
3131 } ) ;
3232
@@ -42,7 +42,7 @@ describe('BoundingBoxTool', () => {
4242 expect ( result . content [ 0 ] ) . toHaveProperty ( 'type' , 'text' ) ;
4343 const textContent = result . content [ 0 ] as TextContent ;
4444 expect ( JSON . parse ( textContent . text ) ) . toEqual ( {
45- data : [ - 73.9857 , 40.7484 , - 73.9857 , 40.7484 ]
45+ data : { bbox : [ - 73.9857 , 40.7484 , - 73.9857 , 40.7484 ] }
4646 } ) ;
4747 } ) ;
4848
@@ -62,7 +62,7 @@ describe('BoundingBoxTool', () => {
6262 expect ( result . content [ 0 ] ) . toHaveProperty ( 'type' , 'text' ) ;
6363 const textContent = result . content [ 0 ] as TextContent ;
6464 expect ( JSON . parse ( textContent . text ) ) . toEqual ( {
65- data : [ - 73.9919 , 40.7484 , - 73.9857 , 40.7614 ]
65+ data : { bbox : [ - 73.9919 , 40.7484 , - 73.9857 , 40.7614 ] }
6666 } ) ;
6767 } ) ;
6868
@@ -86,7 +86,7 @@ describe('BoundingBoxTool', () => {
8686 expect ( result . content [ 0 ] ) . toHaveProperty ( 'type' , 'text' ) ;
8787 const textContent = result . content [ 0 ] as TextContent ;
8888 expect ( JSON . parse ( textContent . text ) ) . toEqual ( {
89- data : [ - 73.9919 , 40.7484 , - 73.9857 , 40.7614 ]
89+ data : { bbox : [ - 73.9919 , 40.7484 , - 73.9857 , 40.7614 ] }
9090 } ) ;
9191 } ) ;
9292
@@ -119,7 +119,7 @@ describe('BoundingBoxTool', () => {
119119 expect ( result . content [ 0 ] ) . toHaveProperty ( 'type' , 'text' ) ;
120120 const textContent = result . content [ 0 ] as TextContent ;
121121 expect ( JSON . parse ( textContent . text ) ) . toEqual ( {
122- data : [ - 74.006 , 40.7128 , - 73.9857 , 40.7484 ]
122+ data : { bbox : [ - 74.006 , 40.7128 , - 73.9857 , 40.7484 ] }
123123 } ) ;
124124 } ) ;
125125
@@ -139,7 +139,7 @@ describe('BoundingBoxTool', () => {
139139 expect ( result . content [ 0 ] ) . toHaveProperty ( 'type' , 'text' ) ;
140140 const textContent = result . content [ 0 ] as TextContent ;
141141 expect ( JSON . parse ( textContent . text ) ) . toEqual ( {
142- data : [ - 74.006 , 40.7128 , - 73.9352 , 40.7484 ]
142+ data : { bbox : [ - 74.006 , 40.7128 , - 73.9352 , 40.7484 ] }
143143 } ) ;
144144 } ) ;
145145
@@ -173,7 +173,9 @@ describe('BoundingBoxTool', () => {
173173 expect ( result . isError ) . toBe ( false ) ;
174174 expect ( result . content [ 0 ] ) . toHaveProperty ( 'type' , 'text' ) ;
175175 const textContent = result . content [ 0 ] as TextContent ;
176- expect ( JSON . parse ( textContent . text ) ) . toEqual ( { data : [ 0 , 0 , 3 , 3 ] } ) ;
176+ expect ( JSON . parse ( textContent . text ) ) . toEqual ( {
177+ data : { bbox : [ 0 , 0 , 3 , 3 ] }
178+ } ) ;
177179 } ) ;
178180
179181 it ( 'should calculate bounding box for a GeometryCollection' , async ( ) => {
@@ -200,7 +202,7 @@ describe('BoundingBoxTool', () => {
200202 expect ( result . content [ 0 ] ) . toHaveProperty ( 'type' , 'text' ) ;
201203 const textContent = result . content [ 0 ] as TextContent ;
202204 expect ( JSON . parse ( textContent . text ) ) . toEqual ( {
203- data : [ - 74.006 , 40.7128 , - 73.9352 , 40.7484 ]
205+ data : { bbox : [ - 74.006 , 40.7128 , - 73.9352 , 40.7484 ] }
204206 } ) ;
205207 } ) ;
206208
0 commit comments