diff --git a/uni_modules/uts-tests/utssdk/UTSJSONObject.uts b/uni_modules/uts-tests/utssdk/UTSJSONObject.uts index d64bda15a4755aec78e55f52b7238c13dc5510af..4533cda29f0ebadbf118b145eb93997be3e67a0c 100644 --- a/uni_modules/uts-tests/utssdk/UTSJSONObject.uts +++ b/uni_modules/uts-tests/utssdk/UTSJSONObject.uts @@ -5,14 +5,12 @@ import { describe, test, expect, expectNumber, Result } from './tests.uts' export function testUTSJSONObject() : Result { return describe("utsjsonobject", () => { test('keys', () => { - // #ifdef APP-ANDROID let obj = { name:"zhangsan", age:11 } - expect(UTSJSONObject.keys(obj).size).toEqual(2); + expect(UTSJSONObject.keys(obj).length).toEqual(2); console.log(UTSJSONObject.keys(obj)) - // #endif }) test('assign-notype', () => {