@@ -56,7 +56,7 @@ describeWithMongoDB("find tool", (integration) => {
56
56
arguments : { database : "non-existent" , collection : "foos" } ,
57
57
} ) ;
58
58
const content = getResponseContent ( response . content ) ;
59
- expect ( content ) . toEqual ( 'Found 0 documents in the collection "foos".' ) ;
59
+ expect ( content ) . toEqual ( 'Query on collection "foos" resulted in 0 documents .' ) ;
60
60
} ) ;
61
61
62
62
it ( "returns 0 when collection doesn't exist" , async ( ) => {
@@ -68,7 +68,7 @@ describeWithMongoDB("find tool", (integration) => {
68
68
arguments : { database : integration . randomDbName ( ) , collection : "non-existent" } ,
69
69
} ) ;
70
70
const content = getResponseContent ( response . content ) ;
71
- expect ( content ) . toEqual ( 'Found 0 documents in the collection "non-existent".' ) ;
71
+ expect ( content ) . toEqual ( 'Query on collection "non-existent" resulted in 0 documents .' ) ;
72
72
} ) ;
73
73
74
74
describe ( "with existing database" , ( ) => {
@@ -148,7 +148,7 @@ describeWithMongoDB("find tool", (integration) => {
148
148
} ,
149
149
} ) ;
150
150
const content = getResponseContent ( response ) ;
151
- expect ( content ) . toContain ( `Found ${ expected . length } documents in the collection "foo" .` ) ;
151
+ expect ( content ) . toContain ( `Query on collection "foo" resulted in ${ expected . length } documents.` ) ;
152
152
153
153
const docs = getDocsFromUntrustedContent ( content ) ;
154
154
@@ -165,7 +165,7 @@ describeWithMongoDB("find tool", (integration) => {
165
165
arguments : { database : integration . randomDbName ( ) , collection : "foo" } ,
166
166
} ) ;
167
167
const content = getResponseContent ( response ) ;
168
- expect ( content ) . toContain ( 'Found 10 documents in the collection "foo".' ) ;
168
+ expect ( content ) . toContain ( 'Query on collection "foo" resulted in 10 documents .' ) ;
169
169
170
170
const docs = getDocsFromUntrustedContent ( content ) ;
171
171
expect ( docs . length ) . toEqual ( 10 ) ;
@@ -195,7 +195,7 @@ describeWithMongoDB("find tool", (integration) => {
195
195
} ) ;
196
196
197
197
const content = getResponseContent ( response ) ;
198
- expect ( content ) . toContain ( 'Found 1 documents in the collection "foo".' ) ;
198
+ expect ( content ) . toContain ( 'Query on collection "foo" resulted in 1 documents .' ) ;
199
199
200
200
const docs = getDocsFromUntrustedContent ( content ) ;
201
201
expect ( docs . length ) . toEqual ( 1 ) ;
@@ -207,7 +207,7 @@ describeWithMongoDB("find tool", (integration) => {
207
207
validateAutoConnectBehavior ( integration , "find" , ( ) => {
208
208
return {
209
209
args : { database : integration . randomDbName ( ) , collection : "coll1" } ,
210
- expectedResponse : 'Found 0 documents in the collection "coll1"' ,
210
+ expectedResponse : 'Query on collection "coll1" resulted in 0 documents. ' ,
211
211
} ;
212
212
} ) ;
213
213
} ) ;
0 commit comments