From 7318dae0ca571f7f4f5331d119a1ad8cd92a2e14 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 20 Jul 2023 20:52:41 +0800 Subject: [PATCH] test: getApp --- pages/API/get-app/get-app.test.js | 1 + pages/API/get-app/get-app.uvue | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/API/get-app/get-app.test.js b/pages/API/get-app/get-app.test.js index b934c907..376c1b69 100644 --- a/pages/API/get-app/get-app.test.js +++ b/pages/API/get-app/get-app.test.js @@ -8,5 +8,6 @@ describe('getApp', () => { await page.callMethod('_increasetLifeCycleNum') const newData = await page.data() expect(newData.lifeCycleNum - oldData.lifeCycleNum).toBe(100) + await page.callMethod('setLifeCycleNum', oldData.lifeCycleNum) }) }) diff --git a/pages/API/get-app/get-app.uvue b/pages/API/get-app/get-app.uvue index 580da9f5..e9cab356 100644 --- a/pages/API/get-app/get-app.uvue +++ b/pages/API/get-app/get-app.uvue @@ -8,7 +8,7 @@ -- GitLab