Skip to content

Commit cb35fdf

Browse files
committed
Fix
1 parent 231168e commit cb35fdf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/integration/tools/mongodb/read/aggregate.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
21
import {
32
databaseCollectionParameters,
43
validateToolMetadata,
@@ -83,14 +82,14 @@ describeWithMongoDB("aggregate tool", (integration) => {
8382
expect(elements[0]?.text).toEqual('Found 2 documents in the collection "people":');
8483
expect(asObject(JSON.parse(elements[1]?.text ?? "{}"))).toEqual(
8584
expect.objectContaining({
86-
_id: expect.any(Object),
85+
_id: expect.any(Object) as object,
8786
name: "Søren",
8887
age: 15,
8988
})
9089
);
9190
expect(asObject(JSON.parse(elements[2]?.text ?? "{}"))).toEqual(
9291
expect.objectContaining({
93-
_id: expect.any(Object),
92+
_id: expect.any(Object) as object,
9493
name: "Laura",
9594
age: 10,
9695
})

0 commit comments

Comments
 (0)