From 32942058fb4e1d66e3302ba0ee78888f59efb36f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Mon, 22 Jul 2024 11:36:16 +0800 Subject: [PATCH] =?UTF-8?q?test:=20web=E7=AB=AF=E6=94=AF=E6=8C=81Object.ke?= =?UTF-8?q?ys=E6=B5=8B=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/UTSJSONObject.uts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/uni_modules/uts-tests/utssdk/UTSJSONObject.uts b/uni_modules/uts-tests/utssdk/UTSJSONObject.uts index d64bda1..4533cda 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', () => { -- GitLab