This commit is contained in:
hjlarry 2026-01-17 22:58:27 +08:00
parent 434f7f3bcb
commit 4200ac0da3
2 changed files with 6 additions and 1 deletions

View File

@ -73,6 +73,7 @@ describe('CRDTProvider', () => {
expect(socket.emit).toHaveBeenCalledWith(
'graph_event',
expect.any(Uint8Array),
expect.any(Function),
)
expect(doc.export).toHaveBeenCalledWith({ mode: 'update' })
})

View File

@ -126,7 +126,11 @@ describe('WebSocketClient', () => {
expect(connectHandler).toBeDefined()
connectHandler()
expect(mockSocket.emit).toHaveBeenCalledWith('user_connect', { workflow_id: 'app-auth' })
expect(mockSocket.emit).toHaveBeenCalledWith(
'user_connect',
{ workflow_id: 'app-auth' },
expect.any(Function),
)
})
it('disconnects a specific app and clears internal maps', async () => {