From 1739a4e35645478998534a0d1fd36c7004fe8e59 Mon Sep 17 00:00:00 2001 From: wangzhitong Date: Tue, 26 Mar 2024 16:18:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=B7=B2=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=9A=84=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/get-app-base-info/get-app-base-info.test.js | 5 +---- pages/API/get-system-info/get-system-info.test.js | 7 +------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/pages/API/get-app-base-info/get-app-base-info.test.js b/pages/API/get-app-base-info/get-app-base-info.test.js index 61f3ca69..2a446c6c 100644 --- a/pages/API/get-app-base-info/get-app-base-info.test.js +++ b/pages/API/get-app-base-info/get-app-base-info.test.js @@ -10,10 +10,7 @@ describe('ExtApi-GetAppBaseInfo', () => { ] const numberProperties = [ 'uniCompilerVersionCode', 'uniRuntimeVersionCode' - ] - if (process.env.uniTestPlatformInfo.indexOf('web') === -1) { - stringProperties.push('version') - } + ] beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) await page.waitFor(600); diff --git a/pages/API/get-system-info/get-system-info.test.js b/pages/API/get-system-info/get-system-info.test.js index d8ccd4e6..5fcd0093 100644 --- a/pages/API/get-system-info/get-system-info.test.js +++ b/pages/API/get-system-info/get-system-info.test.js @@ -15,12 +15,7 @@ describe('ExtApi-GetSystemInfo', () => { 'windowWidth', 'windowHeight', 'windowTop', 'windowBottom', 'screenTop', 'uniCompilerVersionCode', 'uniRuntimeVersionCode' - ] - - - if (process.env.uniTestPlatformInfo.indexOf('web') === -1) { - stringProperties.push('version') - } + ] beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) -- GitLab