From 8d59f70f9deeb4019d81bca2a59946c79f33e7f5 Mon Sep 17 00:00:00 2001 From: zhaohaoran9 Date: Wed, 28 Jun 2023 16:04:08 +0800 Subject: [PATCH] =?UTF-8?q?master=20acts=E8=A1=A5=E5=85=85ISV=E5=8E=82?= =?UTF-8?q?=E5=95=86=E5=9F=BA=E4=BA=8EOHOS=E5=8F=91=E8=A1=8C=E7=9A=84?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E4=BF=A1=E6=81=AF=E5=90=8D=E7=A7=B0=E3=80=81?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E3=80=81apiversion=E5=92=8C=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E7=B1=BB=E5=9E=8B=E7=AD=89=E5=B1=9E=E6=80=A7=E5=8F=82?= =?UTF-8?q?=E6=95=B0XTS=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaohaoran9 Change-Id: Iabc7e6695cc45313e87b86a9fb1158bd6a4db2fa --- .../src/main/js/test/DeviceInfoJsUnit.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/startup/startup_standard/deviceinfo/src/main/js/test/DeviceInfoJsUnit.test.js b/startup/startup_standard/deviceinfo/src/main/js/test/DeviceInfoJsUnit.test.js index b5c865bf9..715f3b0b7 100644 --- a/startup/startup_standard/deviceinfo/src/main/js/test/DeviceInfoJsUnit.test.js +++ b/startup/startup_standard/deviceinfo/src/main/js/test/DeviceInfoJsUnit.test.js @@ -1753,16 +1753,16 @@ export default function DeviceInfoTest() { it('device_info_test_0669', 0, function () { console.info('device_info_test_0669 start'); - let osReleaseTypeInfo = deviceinfo.osReleaseType; - console.info('the value of the deviceinfo distributionOSReleaseType is :' + osReleaseTypeInfo); + let distributionOSReleaseTypeInfo = deviceinfo.distributionOSReleaseType; + console.info('the value of the deviceinfo distributiondistributionOSReleaseType is :' + distributionOSReleaseTypeInfo); - expect(osReleaseTypeInfo).assertInstanceOf('String'); - if (osReleaseTypeInfo != "" && osReleaseTypeInfo != null && osReleaseTypeInfo != undefined) { + expect(distributionOSReleaseTypeInfo).assertInstanceOf('String'); + if (distributionOSReleaseTypeInfo != "" && distributionOSReleaseTypeInfo != null && distributionOSReleaseTypeInfo != undefined) { let str = /[\w-\.\(\)]/g; - let arr = osReleaseTypeInfo.match(str); + let arr = distributionOSReleaseTypeInfo.match(str); let bufferstr = arr.join(''); console.info('the value of the bufferstr is :' + bufferstr); - expect(osReleaseTypeInfo).assertEqual(bufferstr); + expect(distributionOSReleaseTypeInfo).assertEqual(bufferstr); } else { console.info('the return value is null or incorrect.'); expect().assertFail(); -- GitLab