Skip to content

Commit 3d9564b

Browse files
committed
fix copy-paste error
1 parent 3fc81e6 commit 3d9564b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/integration/tools/mongodb/create/createIndex.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
setupIntegrationTest,
66
} from "../../../helpers.js";
77
import { McpError } from "@modelcontextprotocol/sdk/types.js";
8-
import { ObjectId } from "bson";
98
import { IndexDirection } from "mongodb";
109
import config from "../../../../../src/config.js";
1110

@@ -14,11 +13,11 @@ describe("createIndex tool", () => {
1413

1514
it("should have correct metadata", async () => {
1615
const { tools } = await integration.mcpClient().listTools();
17-
const listCollections = tools.find((tool) => tool.name === "create-index")!;
18-
expect(listCollections).toBeDefined();
19-
expect(listCollections.description).toBe("Create an index for a collection");
16+
const createIndex = tools.find((tool) => tool.name === "create-index")!;
17+
expect(createIndex).toBeDefined();
18+
expect(createIndex.description).toBe("Create an index for a collection");
2019

21-
validateParameters(listCollections, [
20+
validateParameters(createIndex, [
2221
...dbOperationParameters,
2322
{
2423
name: "keys",

0 commit comments

Comments
 (0)