Skip to content

Commit 4a02ecf

Browse files
committed
undefine the api client id and secret
1 parent 55f1ddf commit 4a02ecf

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

tests/integration/server.test.ts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,24 @@ import { config } from "../../src/config.js";
33
import { describeWithMongoDB } from "./tools/mongodb/mongodbHelpers.js";
44

55
describe("Server integration test", () => {
6-
describeWithMongoDB("without atlas", (integration) => {
7-
it("should return positive number of tools and have no atlas tools", async () => {
8-
const tools = await integration.mcpClient().listTools();
9-
expectDefined(tools);
10-
expect(tools.tools.length).toBeGreaterThan(0);
6+
describeWithMongoDB(
7+
"without atlas",
8+
(integration) => {
9+
it("should return positive number of tools and have no atlas tools", async () => {
10+
const tools = await integration.mcpClient().listTools();
11+
expectDefined(tools);
12+
expect(tools.tools.length).toBeGreaterThan(0);
1113

12-
const atlasTools = tools.tools.filter((tool) => tool.name.startsWith("atlas-"));
13-
expect(atlasTools.length).toBeLessThanOrEqual(0);
14-
});
15-
});
14+
const atlasTools = tools.tools.filter((tool) => tool.name.startsWith("atlas-"));
15+
expect(atlasTools.length).toBeLessThanOrEqual(0);
16+
});
17+
},
18+
() => ({
19+
...config,
20+
apiClientId: undefined,
21+
apiClientSecret: undefined,
22+
})
23+
);
1624

1725
describe("with atlas", () => {
1826
const integration = setupIntegrationTest(() => ({

0 commit comments

Comments
 (0)