mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-03-29 23:14:57 +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()
|
||||
}))
|
||||
|
||||
jest.mock('/Users/mike/projects/claude-relay-service/config/config', () => ({}), {
|
||||
jest.mock('../config/config', () => ({}), {
|
||||
virtual: true
|
||||
})
|
||||
jest.mock('../src/models/redis', () => ({}))
|
||||
@@ -58,13 +58,5 @@ describe('claudeConsoleRelayService.testAccountConnection', () => {
|
||||
payload
|
||||
})
|
||||
)
|
||||
expect(sendStreamTestRequest).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
payload: expect.objectContaining({
|
||||
model: 'claude-sonnet-4-6',
|
||||
stream: true
|
||||
})
|
||||
})
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user