From afb3eac173cceac994240d260472bc0800ec81eb Mon Sep 17 00:00:00 2001 From: wangzhitong Date: Mon, 25 Mar 2024 18:15:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E9=83=A8=E5=88=86ext=20api?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=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 | 4 ++-- pages/API/get-system-info/get-system-info.test.js | 4 ++-- pages/API/get-system-setting/get-system-setting.test.js | 8 ++++---- 3 files changed, 8 insertions(+), 8 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 0ff7c3c5..61f3ca69 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 @@ -6,10 +6,10 @@ describe('ExtApi-GetAppBaseInfo', () => { let res; const stringProperties = [ 'appId', 'appName', 'appVersion', 'appVersionCode', 'appLanguage', - 'language', 'uniCompileVersion', 'uniPlatform', 'uniRuntimeVersion', + 'language', 'uniCompilerVersion', 'uniPlatform', 'uniRuntimeVersion', ] const numberProperties = [ - 'uniCompileVersionCode', 'uniRuntimeVersionCode' + 'uniCompilerVersionCode', 'uniRuntimeVersionCode' ] if (process.env.uniTestPlatformInfo.indexOf('web') === -1) { stringProperties.push('version') 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 c59da342..d8ccd4e6 100644 --- a/pages/API/get-system-info/get-system-info.test.js +++ b/pages/API/get-system-info/get-system-info.test.js @@ -7,14 +7,14 @@ describe('ExtApi-GetSystemInfo', () => { const stringProperties = [ 'appId', 'appLanguage', 'appName', 'appVersion', 'appVersionCode', 'brand', 'deviceId', 'deviceBrand', 'deviceModel', 'deviceType', 'language', - 'model', 'osName', 'osVersion', 'osLanguage', 'platform', 'system', 'ua', 'uniCompileVersion', + 'model', 'osName', 'osVersion', 'osLanguage', 'platform', 'system', 'ua', 'uniCompilerVersion', 'uniPlatform', 'uniRuntimeVersion', 'romName', 'romVersion', ] const numberProperties = [ 'osAndroidAPILevel', 'devicePixelRatio', 'pixelRatio', 'screenWidth', 'screenHeight', 'statusBarHeight', 'windowWidth', 'windowHeight', 'windowTop', 'windowBottom', 'screenTop', - 'uniCompileVersionCode', 'uniRuntimeVersionCode' + 'uniCompilerVersionCode', 'uniRuntimeVersionCode' ] diff --git a/pages/API/get-system-setting/get-system-setting.test.js b/pages/API/get-system-setting/get-system-setting.test.js index c715b308..9fa3c7b9 100644 --- a/pages/API/get-system-setting/get-system-setting.test.js +++ b/pages/API/get-system-setting/get-system-setting.test.js @@ -18,10 +18,10 @@ describe('ExtApi-GetSystemSetting', () => { it('Check GetSystemSetting', async () => { for (const key in res) { const value = res[key]; - if (res['bluetoothEnabled'] == undefined) { - expect(res['bluetoothError']).not.toBe("") - } else { - expect(res['bluetoothError'] == undefined).toBe(true) + if (res['bluetoothEnabled'] == undefined || res['bluetoothEnabled'] === false) { + expect(res['bluetoothError']).not.toBe("") + } else { + expect(res['bluetoothError'] == undefined).toBe(true) } if (res['wifiEnabled'] == undefined) { -- GitLab