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 0ff7c3c585ff3778b09f02d6c897b63214dd60c9..61f3ca6989b44cf884a335f24fd925ad44afe756 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 c59da34263bf4c22ac736fc588ee782d35b05eec..d8ccd4e6d587b116b5056784adc2ccb39d8d2eb7 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 c715b3081c2c91b14d64b57542a3af76c3839c74..9fa3c7b931562b7166d81069a770493ff287a0e2 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) {