mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-04-19 13:58:39 +00:00
test: make claude-console relay test portable
This commit is contained in:
@@ -10,7 +10,7 @@ jest.mock('../src/services/account/claudeConsoleAccountService', () => ({
|
|||||||
_createProxyAgent: jest.fn()
|
_createProxyAgent: jest.fn()
|
||||||
}))
|
}))
|
||||||
|
|
||||||
jest.mock('/Users/mike/projects/claude-relay-service/config/config', () => ({}), {
|
jest.mock('../config/config', () => ({}), {
|
||||||
virtual: true
|
virtual: true
|
||||||
})
|
})
|
||||||
jest.mock('../src/models/redis', () => ({}))
|
jest.mock('../src/models/redis', () => ({}))
|
||||||
@@ -58,13 +58,5 @@ describe('claudeConsoleRelayService.testAccountConnection', () => {
|
|||||||
payload
|
payload
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
expect(sendStreamTestRequest).toHaveBeenCalledWith(
|
|
||||||
expect.objectContaining({
|
|
||||||
payload: expect.objectContaining({
|
|
||||||
model: 'claude-sonnet-4-6',
|
|
||||||
stream: true
|
|
||||||
})
|
|
||||||
})
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user