feat(FEAT-MO-005): 接入市场结构前端数据层
This commit is contained in:
@@ -19,6 +19,9 @@ describe('市场概览状态', () => {
|
||||
getBreadth: vi.fn().mockResolvedValue(response),
|
||||
getSectors: vi.fn().mockResolvedValue(response),
|
||||
getFunds: vi.fn().mockResolvedValue(response),
|
||||
getSectorRankings: vi.fn().mockResolvedValue(response),
|
||||
getCapitalFlow: vi.fn().mockResolvedValue(response),
|
||||
getTurnoverTrend: vi.fn().mockResolvedValue(response),
|
||||
getShortTermEmotion: vi.fn().mockResolvedValue(response),
|
||||
getShortTermConclusion: vi.fn().mockResolvedValue(response),
|
||||
};
|
||||
@@ -32,6 +35,9 @@ describe('市场概览状态', () => {
|
||||
expect(state.isLoading.value).toBe(false);
|
||||
expect(state.shortTermEmotion.value.status).toBe('ready');
|
||||
expect(state.shortTermConclusion.value.status).toBe('ready');
|
||||
expect(state.sectorRankings.value.status).toBe('ready');
|
||||
expect(state.capitalFlow.value.status).toBe('ready');
|
||||
expect(state.turnoverTrend.value.status).toBe('ready');
|
||||
});
|
||||
|
||||
it('分析偏好写入本地存储并可恢复', () => {
|
||||
|
||||
Reference in New Issue
Block a user