diff --git a/uni_modules/uts-tests/utssdk/Array.uts b/uni_modules/uts-tests/utssdk/Array.uts index 5251a110aa3697caaaf5b35bd8d62e92896ca65a..f084e3c7e56f231823defdd3ba3f65c114aee221 100644 --- a/uni_modules/uts-tests/utssdk/Array.uts +++ b/uni_modules/uts-tests/utssdk/Array.uts @@ -184,16 +184,11 @@ export function testArray(): Result { x : number y : number } - // #ifdef WEB - const s = JSON.parse(JSON.stringify([{ x: 0, y: 0 }])) as P[] - s[0].x += 0; - const clearList = s.map((v : P, _, a) : number => v.x) - expect(clearList.includes(0)).toEqual(true); - // #endif - // #ifdef APP-ANDROID + + // #ifndef APP-IOS const s = JSON.parse(JSON.stringify([{ x: 0, y: 0 }])) as P[] s[0].x += 0; - const clearList = s.map((v : P, _, _) : number => v.x) + const clearList = s.map((v : P, _, _a) : number => v.x) expect(clearList.includes(0)).toEqual(true); // #endif // #ifdef APP-IOS