From 969c9666c70a7fb9e3cdb0fe51d9373138c34e6c Mon Sep 17 00:00:00 2001 From: m0_75226990 Date: Tue, 27 Aug 2024 16:46:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4promise=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/Promise.uts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uni_modules/uts-tests/utssdk/Promise.uts b/uni_modules/uts-tests/utssdk/Promise.uts index 8e6e69d..0b7a3c0 100644 --- a/uni_modules/uts-tests/utssdk/Promise.uts +++ b/uni_modules/uts-tests/utssdk/Promise.uts @@ -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"]) -- GitLab