feat(FEAT-DS-001): 接入AKTools超短行情补充数据源
This commit is contained in:
@@ -19,6 +19,8 @@ describe('市场概览状态', () => {
|
||||
getBreadth: vi.fn().mockResolvedValue(response),
|
||||
getSectors: vi.fn().mockResolvedValue(response),
|
||||
getFunds: vi.fn().mockResolvedValue(response),
|
||||
getShortTermEmotion: vi.fn().mockResolvedValue(response),
|
||||
getShortTermConclusion: vi.fn().mockResolvedValue(response),
|
||||
};
|
||||
const state = useMarketOverview(api);
|
||||
|
||||
@@ -28,6 +30,8 @@ describe('市场概览状态', () => {
|
||||
expect(state.indices.value.status).toBe('error');
|
||||
expect(state.breadth.value.status).toBe('ready');
|
||||
expect(state.isLoading.value).toBe(false);
|
||||
expect(state.shortTermEmotion.value.status).toBe('ready');
|
||||
expect(state.shortTermConclusion.value.status).toBe('ready');
|
||||
});
|
||||
|
||||
it('分析偏好写入本地存储并可恢复', () => {
|
||||
|
||||
Reference in New Issue
Block a user