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
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(
222217export 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- }
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments