Skip to content

Commit c239276

Browse files
committed
fix: remove unused variable and helper
1 parent 99eefde commit c239276

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

tests/integration/helpers.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ export function setupIntegrationTest(userConfig: UserConfig = config): Integrati
2525
let mcpClient: Client | undefined;
2626
let mcpServer: Server | undefined;
2727

28-
// This gets used in the scope of tests.
29-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
30-
let randomDbName: string;
31-
3228
beforeAll(async () => {
3329
const clientTransport = new InMemoryTransport();
3430
const serverTransport = new InMemoryTransport();
@@ -69,7 +65,6 @@ export function setupIntegrationTest(userConfig: UserConfig = config): Integrati
6965

7066
beforeEach(() => {
7167
config.telemetry = "disabled";
72-
randomDbName = new ObjectId().toString();
7368
});
7469

7570
afterAll(async () => {
@@ -222,8 +217,3 @@ export function validateThrowsForInvalidArguments(
222217
export function expectDefined<T>(arg: T): asserts arg is Exclude<T, undefined> {
223218
expect(arg).toBeDefined();
224219
}
225-
226-
/** Expects the argument being undefined and asserts it */
227-
export function expectUndefined(arg: unknown): asserts arg is undefined {
228-
expect(arg).toBeUndefined();
229-
}

tests/integration/server.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ describe("Server integration test", () => {
5050
it("should return capabilities", () => {
5151
const capabilities = integration.mcpClient().getServerCapabilities();
5252
expectDefined(capabilities);
53-
expect(capabilities?.completions).toBeUndefined();
54-
expect(capabilities?.experimental).toBeUndefined();
53+
expect(capabilities.completions).toBeUndefined();
54+
expect(capabilities.experimental).toBeUndefined();
5555
expectDefined(capabilities?.tools);
5656
expectDefined(capabilities?.logging);
5757
expect(capabilities?.prompts).toBeUndefined();

0 commit comments

Comments
 (0)