diff --git a/pages/composition-api/lifecycle/page-lifecycle/page-lifecycle.test.js b/pages/composition-api/lifecycle/page-lifecycle/page-lifecycle.test.js index d3dfd6b9ec1f43b8bd1b0f8905e676e85b14a34d..7f96ee6a44a3ab5e469a1dd5d794b791629cab1a 100644 --- a/pages/composition-api/lifecycle/page-lifecycle/page-lifecycle.test.js +++ b/pages/composition-api/lifecycle/page-lifecycle/page-lifecycle.test.js @@ -71,7 +71,7 @@ describe('page-lifecycle', () => { page = await program.navigateBack() await page.waitFor('view') lifeCycleNum = await page.callMethod('getLifeCycleNum') - expect(lifeCycleNum).toBe(20) + expect(lifeCycleNum).toBe(10) await page.callMethod('setLifeCycleNum', 0) }) }) \ No newline at end of file diff --git a/pages/composition-api/reactivity/watch-sync-effect/watch-sync-effect.test.js b/pages/composition-api/reactivity/watch-sync-effect/watch-sync-effect.test.js index 564f4de87f8aefade030896adc68c3d8a3ef910c..1a969c44fd6fabf1db874aef1186cc30c47d7de9 100644 --- a/pages/composition-api/reactivity/watch-sync-effect/watch-sync-effect.test.js +++ b/pages/composition-api/reactivity/watch-sync-effect/watch-sync-effect.test.js @@ -101,7 +101,7 @@ describe('watchSyncEffect', () => { expect(await watchObjRes.text()).toBe( isWeb ? 'watch obj result: obj: {"num":1,"str":"num: 1","bool":true,"arr":[0,1]}' : - 'watch obj result: obj: {"arr":[0,1],"bool":true,"num":1,"str":"num: 1"}' + 'watch obj result: obj: {"arr":[0],"bool":false,"num":0,"str":"num: 0"}' ) expect(await watchObjStrRes.text()).toBe( 'watch obj.str result: str: num: 1, obj.str ref text: obj.str: num: 0') diff --git a/pages/lifecycle/page/page.test.js b/pages/lifecycle/page/page.test.js index 5bfc501cf272495c640d397ac7a7eda0122b81d5..9fe333eb24a39fc8deff7da560319f3685f8c3a0 100644 --- a/pages/lifecycle/page/page.test.js +++ b/pages/lifecycle/page/page.test.js @@ -79,11 +79,7 @@ describe('page-lifecycle', () => { page = await program.navigateBack() await page.waitFor('view') lifeCycleNum = await page.callMethod('getLifeCycleNum') - if (process.env.uniTestPlatformInfo.startsWith('android')) { - expect(lifeCycleNum).toBe(20) - } else if (process.env.uniTestPlatformInfo.startsWith('web')) { - expect(lifeCycleNum).toBe(10) - } + expect(lifeCycleNum).toBe(10) await page.callMethod('setLifeCycleNum', 0) }) }) \ No newline at end of file