mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-08 03:28:51 +01:00
🔐 refactor: Improve MCP OAuth Event Handler Cleanup (#9584)
* 🔐 refactor: Improve MCP OAuth event handling and cleanup
* ci: MCPConnection mock with additional event handling methods
This commit is contained in:
parent
e3a645e8fb
commit
51f2d43fed
2 changed files with 39 additions and 6 deletions
|
|
@ -56,6 +56,9 @@ describe('MCPConnectionFactory', () => {
|
|||
isConnected: jest.fn(),
|
||||
setOAuthTokens: jest.fn(),
|
||||
on: jest.fn().mockReturnValue(mockConnectionInstance),
|
||||
once: jest.fn().mockReturnValue(mockConnectionInstance),
|
||||
off: jest.fn().mockReturnValue(mockConnectionInstance),
|
||||
removeListener: jest.fn().mockReturnValue(mockConnectionInstance),
|
||||
emit: jest.fn(),
|
||||
} as unknown as jest.Mocked<MCPConnection>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue