feat(FEAT-MO-001): 完成TDX市场概览首屏

This commit is contained in:
2026-08-18 15:28:35 +08:00
parent 27bc3c198f
commit 82619489a9
38 changed files with 1230 additions and 54 deletions
@@ -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 () => {