提交 969c9666 编写于 作者: lizhongyi_'s avatar lizhongyi_

调整promise示例

上级 2dccc8f9
......@@ -307,7 +307,7 @@ export function testPromise(): Result {
.then((res) => {
console.log(res);
let statusArr : string[] = []
res.forEach((item, index) => {
res.forEach((item, index: number) => {
statusArr.append(item.status)
})
expect(statusArr).toEqual(["fulfilled", "fulfilled", "rejected", "rejected"])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册