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 61f3ca6989b44cf884a335f24fd925ad44afe756..2a446c6c7fe8ecf3dbe181209e92affe2b98c68d 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 d8ccd4e6d587b116b5056784adc2ccb39d8d2eb7..5fcd0093b21204122869965722a50786028e21e4 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)