diff --git a/pages/index/basicTest.uvue b/pages/index/basicTest.uvue index 1dfd9ad12a0b4a1da62fcd12efb105035a9d3d90..168b58c456015288d2b8b6c81d0b6d6c0724fc88 100644 --- a/pages/index/basicTest.uvue +++ b/pages/index/basicTest.uvue @@ -61,9 +61,9 @@ export default { }, // #endif // #ifdef APP - jest_testCallbackKeepAlive() { + jest_testCallbackKeepAlive(): boolean { - let ret = true + let ret: boolean = true let count = 0; onTest1((res) => { diff --git a/uni_modules/uts-tests/utssdk/index.uts b/uni_modules/uts-tests/utssdk/index.uts index 5d8a9020059c05e67b83a794d8c021520d5e7ac1..cfe86119f24f428076403b70ef5905f5e1483fc9 100644 --- a/uni_modules/uts-tests/utssdk/index.uts +++ b/uni_modules/uts-tests/utssdk/index.uts @@ -103,7 +103,7 @@ export function testKeepAliveOption(option: TestKeepAliveOption) { export class TestKeepAliveClass { constructor() { - + super() } onTest(callback: TestKeepAliveCallback) { callback("1")