From 203ba591666442afa9995728d9df1ada8612b8c7 Mon Sep 17 00:00:00 2001 From: mahaifeng Date: Mon, 9 Sep 2024 11:52:57 +0800 Subject: [PATCH] =?UTF-8?q?[regexp]=E5=8E=BB=E9=99=A4=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=AD=E6=89=8B=E5=8A=A8=E7=94=9F=E6=88=90=E7=9A=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A=EF=BC=88?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/UTSJSONObject.uts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/uni_modules/uts-tests/utssdk/UTSJSONObject.uts b/uni_modules/uts-tests/utssdk/UTSJSONObject.uts index b4488bd..f060e68 100644 --- a/uni_modules/uts-tests/utssdk/UTSJSONObject.uts +++ b/uni_modules/uts-tests/utssdk/UTSJSONObject.uts @@ -52,7 +52,7 @@ export function testUTSJSONObject() : Result { let target = { a: 1, b: 2 }; let source = { b: 4, c: 5 }; // 得到一个UTSJSONObject对象 - const returnedTarget = UTSJSONObject.assign(target, source); + let returnedTarget = UTSJSONObject.assign(target, source); // #END expect(returnedTarget.toMap().size).toEqual(3); @@ -79,14 +79,11 @@ export function testUTSJSONObject() : Result { expect(b['work']).toEqual(0.002); // #TEST UTSJSONObject.assign_1 - type User = { - a : number - b : number - } let target1 = { a: 1, b: 2 }; let source1 = { b: 4, c: 5 }; - // 得到一个User对象 - const returnedTarget = UTSJSONObject.assign(target1, source1); + // 得到一个UTSJSONObject对象 + let returned= UTSJSONObject.assign(target1, source1); + console.log(returned) // #END // #endif -- GitLab