From ddf58715b9c778c70c56c93c5b0d294952c5115a Mon Sep 17 00:00:00 2001 From: lizhongyi Date: Sun, 28 Jul 2024 18:17:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86uts=20?= =?UTF-8?q?=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/JSON.uts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uni_modules/uts-tests/utssdk/JSON.uts b/uni_modules/uts-tests/utssdk/JSON.uts index 4bdd1d4..e109259 100644 --- a/uni_modules/uts-tests/utssdk/JSON.uts +++ b/uni_modules/uts-tests/utssdk/JSON.uts @@ -407,12 +407,15 @@ export function testJSON() : Result { test('parse generic type', () => { type A = { num: number, - } + } function test(json: string): T { return JSON.parse(json)! } + // #ifndef APP-IOS const a = test(`{"num": 1}`) expect(a.num).toEqual(1) + // #endif + }) }) -- GitLab