test(mcp): update test to expect signal parameter in createFlow

This commit is contained in:
Danny Avila 2025-12-18 19:45:47 -05:00
parent aa5c18bb29
commit a34ee97292
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -331,12 +331,14 @@ describe('MCPConnectionFactory', () => {
expect(deleteCallOrder).toBeLessThan(createCallOrder);
// Verify createFlow was called with fresh metadata
// 4th arg is the abort signal (undefined in this test since no signal was provided)
expect(mockFlowManager.createFlow).toHaveBeenCalledWith(
'user123:test-server',
'mcp_oauth',
expect.objectContaining({
codeVerifier: 'new-code-verifier-xyz',
}),
undefined,
);
});
});