diff --git a/uni_modules/uts-tests/utssdk/tests.uts b/uni_modules/uts-tests/utssdk/tests.uts index fc6457d257277426d85eb7a4877caa0e74080492..f50a7d41fe0dbbf5333d1b2d4c4d45f73b3d3152 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()