From 13a48e855cda5296be279fc603826386209ede2f Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 26 Sep 2024 17:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E5=8C=BA=E5=88=86=20android/ios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/tests.uts | 28 +++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/uni_modules/uts-tests/utssdk/tests.uts b/uni_modules/uts-tests/utssdk/tests.uts index fc6457d..f50a7d4 100644 --- a/uni_modules/uts-tests/utssdk/tests.uts +++ b/uni_modules/uts-tests/utssdk/tests.uts @@ -1,21 +1,31 @@ import { Matchers,NumberMatchers } from './Matchers.uts' export const describes = new Map() - +// #ifndef APP-IOS export class Result implements IJsonStringify { total = 0 passed: string[] = [] failed: string[] = [] - override toJSON():any|null{ - let jsonRet = { - 'total': this.total, - 'passed': JSON.stringify(this.passed), - 'failed': JSON.stringify(this.failed), - } - return jsonRet - } + toJSON():any|null{ + let jsonRet = { + 'total': this.total, + 'passed': JSON.stringify(this.passed), + 'failed': JSON.stringify(this.failed), + } + return jsonRet + } +} +// #endif + +// #ifdef APP-IOS +export class Result { + total = 0 + passed: string[] = [] + failed: string[] = [] } +// #endif + let result: Result = new Result() -- GitLab