From d66859f65e0235c61b16137eb1668a1b71794cf4 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 (cherry picked from commit ddf58715b9c778c70c56c93c5b0d294952c5115a) --- 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