Skip to content

Commit fbe0e03

Browse files
committed
fix: format
1 parent 4a43d44 commit fbe0e03

File tree

6 files changed

+11
-16
lines changed

6 files changed

+11
-16
lines changed

src/tools/atlas/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export const AtlasTools = [
1919
ListDBUsersTool,
2020
CreateDBUserTool,
2121
CreateProjectTool,
22-
ListOrganizationsTool
22+
ListOrganizationsTool,
2323
];

tests/integration/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface IntegrationTest {
2626
connectionString: () => string;
2727
connectMcpClient: () => Promise<void>;
2828
randomDbName: () => string;
29-
};
29+
}
3030

3131
export function setupIntegrationTest(): IntegrationTest {
3232
let mongoCluster: runner.MongoCluster | undefined;

tests/integration/tools/atlas/atlasHelpers.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ export function describeAtlas(name: number | string | Function | jest.FunctionLi
2626

2727
interface ProjectTestArgs {
2828
getProjectId: () => string;
29-
};
30-
29+
}
3130

3231
type ProjectTestFunction = (args: ProjectTestArgs) => void;
3332

@@ -53,8 +52,8 @@ export function withProject(integration: IntegrationTest, fn: ProjectTestFunctio
5352
params: {
5453
path: {
5554
groupId: projectId,
56-
}
57-
}
55+
},
56+
},
5857
});
5958
});
6059

tests/integration/tools/atlas/clusters.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describeAtlas("clusters", (integration) => {
8686

8787
it("returns cluster data", async () => {
8888
const projectId = getProjectId();
89-
89+
9090
const response = (await integration.mcpClient().callTool({
9191
name: "atlas-inspect-cluster",
9292
arguments: { projectId, clusterName: clusterName },
@@ -120,4 +120,3 @@ describeAtlas("clusters", (integration) => {
120120
});
121121
});
122122
});
123-

tests/integration/tools/atlas/dbUsers.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import { Session } from "../../../../src/session.js";
33
import { describeAtlas, withProject, randomId } from "./atlasHelpers.js";
44

5-
65
describeAtlas("db users", (integration) => {
76
const userName = "testuser-" + randomId;
87
withProject(integration, ({ getProjectId }) => {

tests/integration/tools/atlas/projects.test.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describeAtlas("projects", (integration) => {
2020
params: {
2121
path: {
2222
groupId: project.id || "",
23-
}
23+
},
2424
},
2525
});
2626
break;
@@ -39,12 +39,10 @@ describeAtlas("projects", (integration) => {
3939
expect(createProject.inputSchema.properties).toHaveProperty("organizationId");
4040
});
4141
it("should create a project", async () => {
42-
const response = (await integration
43-
.mcpClient()
44-
.callTool({
45-
name: "atlas-create-project",
46-
arguments: { projectName: projName },
47-
})) as CallToolResult;
42+
const response = (await integration.mcpClient().callTool({
43+
name: "atlas-create-project",
44+
arguments: { projectName: projName },
45+
})) as CallToolResult;
4846
expect(response.content).toBeArray();
4947
expect(response.content).toHaveLength(1);
5048
expect(response.content[0].text).toContain(projName);

0 commit comments

Comments
 (0)