File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,6 @@ export function setupIntegrationTest(userConfig: UserConfig = config): Integrati
25
25
let mcpClient : Client | undefined ;
26
26
let mcpServer : Server | undefined ;
27
27
28
- // This gets used in the scope of tests.
29
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
30
- let randomDbName : string ;
31
-
32
28
beforeAll ( async ( ) => {
33
29
const clientTransport = new InMemoryTransport ( ) ;
34
30
const serverTransport = new InMemoryTransport ( ) ;
@@ -69,7 +65,6 @@ export function setupIntegrationTest(userConfig: UserConfig = config): Integrati
69
65
70
66
beforeEach ( ( ) => {
71
67
config . telemetry = "disabled" ;
72
- randomDbName = new ObjectId ( ) . toString ( ) ;
73
68
} ) ;
74
69
75
70
afterAll ( async ( ) => {
@@ -222,8 +217,3 @@ export function validateThrowsForInvalidArguments(
222
217
export function expectDefined < T > ( arg : T ) : asserts arg is Exclude < T , undefined > {
223
218
expect ( arg ) . toBeDefined ( ) ;
224
219
}
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
- }
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ describe("Server integration test", () => {
50
50
it ( "should return capabilities" , ( ) => {
51
51
const capabilities = integration . mcpClient ( ) . getServerCapabilities ( ) ;
52
52
expectDefined ( capabilities ) ;
53
- expect ( capabilities ? .completions ) . toBeUndefined ( ) ;
54
- expect ( capabilities ? .experimental ) . toBeUndefined ( ) ;
53
+ expect ( capabilities . completions ) . toBeUndefined ( ) ;
54
+ expect ( capabilities . experimental ) . toBeUndefined ( ) ;
55
55
expectDefined ( capabilities ?. tools ) ;
56
56
expectDefined ( capabilities ?. logging ) ;
57
57
expect ( capabilities ?. prompts ) . toBeUndefined ( ) ;
You can’t perform that action at this time.
0 commit comments