@@ -88,7 +88,7 @@ describeWithAtlas("clusters", (integration) => {
88
88
} ) ) as CallToolResult ;
89
89
expect ( response . content ) . toBeArray ( ) ;
90
90
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" ) ;
92
92
} ) ;
93
93
} ) ;
94
94
@@ -113,7 +113,7 @@ describeWithAtlas("clusters", (integration) => {
113
113
} ) ) as CallToolResult ;
114
114
expect ( response . content ) . toBeArray ( ) ;
115
115
expect ( response . content ) . toHaveLength ( 1 ) ;
116
- expect ( response . content [ 0 ] . text ) . toContain ( `${ clusterName } | ` ) ;
116
+ expect ( response . content [ 0 ] ? .text ) . toContain ( `${ clusterName } | ` ) ;
117
117
} ) ;
118
118
} ) ;
119
119
@@ -135,7 +135,7 @@ describeWithAtlas("clusters", (integration) => {
135
135
. callTool ( { name : "atlas-list-clusters" , arguments : { projectId } } ) ) as CallToolResult ;
136
136
expect ( response . content ) . toBeArray ( ) ;
137
137
expect ( response . content ) . toHaveLength ( 2 ) ;
138
- expect ( response . content [ 1 ] . text ) . toContain ( `${ clusterName } | ` ) ;
138
+ expect ( response . content [ 1 ] ? .text ) . toContain ( `${ clusterName } | ` ) ;
139
139
} ) ;
140
140
} ) ;
141
141
@@ -178,7 +178,7 @@ describeWithAtlas("clusters", (integration) => {
178
178
} ) ) as CallToolResult ;
179
179
expect ( response . content ) . toBeArray ( ) ;
180
180
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 } "` ) ;
182
182
} ) ;
183
183
} ) ;
184
184
} ) ;
0 commit comments