diff --git a/uni_modules/uts-tests/utssdk/JSON.uts b/uni_modules/uts-tests/utssdk/JSON.uts index 4bdd1d4cf51929a6529c4eae4fca1fb46f4ce052..e1092597e46537def85f725054ff5b6bc98ceacc 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 + }) })