diff --git a/uni_modules/uts-tests/utssdk/JSON.uts b/uni_modules/uts-tests/utssdk/JSON.uts index aecf8c47213ea77954bf9b4f21b0a1e9f93285aa..3ff104a5b81c2a22a0fbe8918f7d8ad02f768126 100644 --- a/uni_modules/uts-tests/utssdk/JSON.uts +++ b/uni_modules/uts-tests/utssdk/JSON.uts @@ -39,7 +39,7 @@ function countOccurrences(str : string, substr : string) : number { } // #ifdef APP-ANDROID -class A1 implements IJsonStringify{ +class A1 implements IJSONStringify{ override toJSON():any|null{ let jsonRet = { 'name': "zhangsan", @@ -49,31 +49,31 @@ class A1 implements IJsonStringify{ } } -class A2 implements IJsonStringify{ +class A2 implements IJSONStringify{ toJSON():any|null{ return 2 } } -class A3 implements IJsonStringify{ +class A3 implements IJSONStringify{ toJSON():any|null{ return "json" } } -class A4 implements IJsonStringify{ +class A4 implements IJSONStringify{ toJSON():any|null{ return null } } -class A5 implements IJsonStringify{ +class A5 implements IJSONStringify{ toJSON():any|null{ return new A1() } } -class A6 implements IJsonStringify{ +class A6 implements IJSONStringify{ toJSON():any|null{ return new A5() } diff --git a/uni_modules/uts-tests/utssdk/UTSJSONObject.uts b/uni_modules/uts-tests/utssdk/UTSJSONObject.uts index 5e8e9d466e87b8f413bad3a865a6996f80aa5a4d..968227269664a174ab00168f57480c101ac4f760 100644 --- a/uni_modules/uts-tests/utssdk/UTSJSONObject.uts +++ b/uni_modules/uts-tests/utssdk/UTSJSONObject.uts @@ -59,7 +59,7 @@ export function testUTSJSONObject() : Result { expect(data2!.toJSONString()).toEqual('{"str":"test","num":1.0,"num2":2.369}') - class TestData2 implements IJsonStringify{ + class TestData2 implements IJSONStringify{ toJSON():any|null{ return "122" } diff --git a/uni_modules/uts-tests/utssdk/tests.uts b/uni_modules/uts-tests/utssdk/tests.uts index 53041429f3453a8062f54a4fa0572156601a453c..678b07327545a2bf936801cc75db5f97ba5185ea 100644 --- a/uni_modules/uts-tests/utssdk/tests.uts +++ b/uni_modules/uts-tests/utssdk/tests.uts @@ -2,7 +2,7 @@ import { Matchers,NumberMatchers } from './Matchers.uts' export const describes = new Map() // #ifndef APP-IOS -export class Result implements IJsonStringify { +export class Result implements IJSONStringify { total = 0 passed: string[] = [] failed: string[] = []