diff --git a/uni_modules/uts-tests/utssdk/JSON.uts b/uni_modules/uts-tests/utssdk/JSON.uts index 0bb9c93d3045b1bd0e68e30750c37581c6b3ef64..63a1eb0b0235d4bf119dfe0e4796b5d8a55745b4 100644 --- a/uni_modules/uts-tests/utssdk/JSON.uts +++ b/uni_modules/uts-tests/utssdk/JSON.uts @@ -280,17 +280,19 @@ export function testJSON() : Result { }) test('UTSJSONOject', () => { - //var t1 = "1" - //const a = { - // test(){ - // t1 = "2" - // console.log("test") - // } - //} - //(a['test'] as ()=>void)() - //console.log(a['test']) - //expect(t1).toEqual("2") - }) + let t1 = "1" + const a = { + test(){ + t1 = "2" + console.log("test") + } + }; + //console.log(a['test']); + (a['test'] as ()=>void)() + //console.log(t1); + expect(t1).toEqual("2") + //console.log(JSON.stringify(a)); + }) })