mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
修复 tests/accountBalanceService.test.js 的 Prettier 格式问题
This commit is contained in:
@@ -128,7 +128,8 @@ describe('AccountBalanceService', () => {
|
|||||||
|
|
||||||
const mockRedis = buildMockRedis()
|
const mockRedis = buildMockRedis()
|
||||||
mockRedis.getBalanceScriptConfig.mockResolvedValue({
|
mockRedis.getBalanceScriptConfig.mockResolvedValue({
|
||||||
scriptBody: '({ request: { url: \"http://example.com\" }, extractor: function(){ return {} } })'
|
scriptBody:
|
||||||
|
'({ request: { url: \"http://example.com\" }, extractor: function(){ return {} } })'
|
||||||
})
|
})
|
||||||
|
|
||||||
const service = new AccountBalanceService({ redis: mockRedis, logger: mockLogger })
|
const service = new AccountBalanceService({ redis: mockRedis, logger: mockLogger })
|
||||||
@@ -156,7 +157,8 @@ describe('AccountBalanceService', () => {
|
|||||||
|
|
||||||
const mockRedis = buildMockRedis()
|
const mockRedis = buildMockRedis()
|
||||||
mockRedis.getBalanceScriptConfig.mockResolvedValue({
|
mockRedis.getBalanceScriptConfig.mockResolvedValue({
|
||||||
scriptBody: '({ request: { url: \"http://example.com\" }, extractor: function(){ return {} } })'
|
scriptBody:
|
||||||
|
'({ request: { url: \"http://example.com\" }, extractor: function(){ return {} } })'
|
||||||
})
|
})
|
||||||
|
|
||||||
const service = new AccountBalanceService({ redis: mockRedis, logger: mockLogger })
|
const service = new AccountBalanceService({ redis: mockRedis, logger: mockLogger })
|
||||||
|
|||||||
Reference in New Issue
Block a user