提交 99e041af 编写于 作者: F fxy060608

fix: 修复 catch 里边的类型强转错误

上级 f1448313
......@@ -24,7 +24,7 @@ export function test(name: string, fn: () => void) {
result.passed.push(name)
// console.log('push....',result.passed.length)
} catch (e) {
result.failed.push(`${name}:\n${(e as Error).message}`)
result.failed.push(`${name}:\n${e.message}`)
}
result.total++
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册