@@ -88,7 +88,7 @@ describeWithAtlas("clusters", (integration) => {
8888 } ) ) as CallToolResult ;
8989 expect ( response . content ) . toBeArray ( ) ;
9090 expect ( response . content ) . toHaveLength ( 2 ) ;
91- expect ( response . content [ 0 ] . text ) . toContain ( "has been created" ) ;
91+ expect ( response . content [ 0 ] ? .text ) . toContain ( "has been created" ) ;
9292 } ) ;
9393 } ) ;
9494
@@ -113,7 +113,7 @@ describeWithAtlas("clusters", (integration) => {
113113 } ) ) as CallToolResult ;
114114 expect ( response . content ) . toBeArray ( ) ;
115115 expect ( response . content ) . toHaveLength ( 1 ) ;
116- expect ( response . content [ 0 ] . text ) . toContain ( `${ clusterName } | ` ) ;
116+ expect ( response . content [ 0 ] ? .text ) . toContain ( `${ clusterName } | ` ) ;
117117 } ) ;
118118 } ) ;
119119
@@ -135,7 +135,7 @@ describeWithAtlas("clusters", (integration) => {
135135 . callTool ( { name : "atlas-list-clusters" , arguments : { projectId } } ) ) as CallToolResult ;
136136 expect ( response . content ) . toBeArray ( ) ;
137137 expect ( response . content ) . toHaveLength ( 2 ) ;
138- expect ( response . content [ 1 ] . text ) . toContain ( `${ clusterName } | ` ) ;
138+ expect ( response . content [ 1 ] ? .text ) . toContain ( `${ clusterName } | ` ) ;
139139 } ) ;
140140 } ) ;
141141
@@ -178,7 +178,7 @@ describeWithAtlas("clusters", (integration) => {
178178 } ) ) as CallToolResult ;
179179 expect ( response . content ) . toBeArray ( ) ;
180180 expect ( response . content ) . toHaveLength ( 1 ) ;
181- expect ( response . content [ 0 ] . text ) . toContain ( `Connected to cluster "${ clusterName } "` ) ;
181+ expect ( response . content [ 0 ] ? .text ) . toContain ( `Connected to cluster "${ clusterName } "` ) ;
182182 } ) ;
183183 } ) ;
184184 } ) ;
0 commit comments