fix(frontend): spec 文件 mountDetail 参数类型修正——vue-tsc -b 与 CI 对齐 [vps]
This commit is contained in:
@@ -32,7 +32,7 @@ const DETAIL = {
|
||||
rounds: 3, hypId: 'hyp-1' },
|
||||
}
|
||||
|
||||
async function mountDetail(override: object | undefined = undefined) {
|
||||
async function mountDetail(override?: Awaited<ReturnType<typeof api.getFactorDetail>>) {
|
||||
vi.mocked(api.getFactorDetail).mockResolvedValue(
|
||||
override ?? (DETAIL as Awaited<ReturnType<typeof api.getFactorDetail>>))
|
||||
vi.mocked(api.getIcTrend).mockRejectedValue(new Error('no data'))
|
||||
|
||||
Reference in New Issue
Block a user