feat(FEAT-MO-001): 完成TDX市场概览首屏
This commit is contained in:
@@ -26,9 +26,16 @@ describe('市场概览服务', () => {
|
||||
|
||||
const response = await service.getIndices();
|
||||
|
||||
expect(response).toMatchObject({ source: 'tdx', status: 'fresh', data: { items: expect.any(Array) } });
|
||||
expect(response).toMatchObject({
|
||||
source: 'tdx',
|
||||
status: 'fresh',
|
||||
data: { items: expect.any(Array) },
|
||||
});
|
||||
expect(response.snapshotId).toMatch(/^20260818-/);
|
||||
expect(client.request).toHaveBeenCalledWith('get_market_data', expect.objectContaining({ count: 5 }));
|
||||
expect(client.request).toHaveBeenCalledWith(
|
||||
'get_market_data',
|
||||
expect.objectContaining({ count: 5 }),
|
||||
);
|
||||
});
|
||||
|
||||
it('对未验证的市场宽度能力返回不可用而不是伪造数据', async () => {
|
||||
|
||||
Reference in New Issue
Block a user