From 90cbc6ad204512531615df9fb330804e667bb683 Mon Sep 17 00:00:00 2001 From: li-yaoyao777 Date: Wed, 18 May 2022 10:33:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=88=8632=E4=BD=8D=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=B8=8E64=E4=BD=8D=E7=B3=BB=E7=BB=9F=E5=80=BC=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=AA=E5=88=AB=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: li-yaoyao777 --- .../test/unittest/ExampleJsunit.test.js | 59 ------------------- 1 file changed, 59 deletions(-) diff --git a/interfaces/plugin/test/unittest/ExampleJsunit.test.js b/interfaces/plugin/test/unittest/ExampleJsunit.test.js index ff75e1a6..c81d1f35 100644 --- a/interfaces/plugin/test/unittest/ExampleJsunit.test.js +++ b/interfaces/plugin/test/unittest/ExampleJsunit.test.js @@ -462,38 +462,6 @@ describe("SensorJsTest", function () { Promise.all(promiseArray).then(done) }) - /** - * test - * - * @tc.name: SensorJsTest_019 - * @tc.desc: Verification results of the incorrect parameters of the test interface. - * @tc.require: AR000GH2U6 - * @tc.author: - */ - it('SensorJsTest_019', 0, async function (done) { - console.info("---------------------------SensorJsTest_019----------------------------------"); - let geomagneticComponent = [27779.234375, -6214.9794921875, -14924.6611328125, -27.667943954467773, -12.610970497131348, 28465.9765625, 32141.2109375] - sensor.getGeomagneticField({'latitude':0, 'longitude':0, 'altitude':0}, Number.MAX_VALUE, (error, data) => { - if (error) { - console.info('SensorJsTest_019 failed'); - expect(false).assertTrue(); - } else { - console.info('SensorJsTest_019 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z + ',geomagneticDip: ' + data.geomagneticDip - + ',deflectionAngle: ' + data.deflectionAngle + ',levelIntensity: ' + data.levelIntensity + ',totalIntensity: ' + data.totalIntensity) - expect(data.x).assertEqual(geomagneticComponent[0]) - expect(data.y).assertEqual(geomagneticComponent[1]) - expect(data.z).assertEqual(geomagneticComponent[2]) - expect(data.geomagneticDip).assertEqual(geomagneticComponent[3]) - expect(data.deflectionAngle).assertEqual(geomagneticComponent[4]) - expect(data.levelIntensity).assertEqual(geomagneticComponent[5]) - expect(data.totalIntensity).assertEqual(geomagneticComponent[6]) - } - setTimeout(() =>{ - done() - }, 500) - }) - }) - /** * test * @@ -1108,33 +1076,6 @@ describe("SensorJsTest", function () { done() }) - /** - * test - * - * @tc.name: SensorJsTest_043 - * @tc.desc: Verification results of the incorrect parameters of the test interface. - * @tc.require: AR000GH2UB - * @tc.author: - */ - it("SensorJsTest_043", 0, async function (done) { - console.info('----------------------SensorJsTest_043---------------------------'); - let geomagneticComponent = [27779.234375, -6214.9794921875, -14924.6611328125, -27.667943954467773, -12.610970497131348, 28465.9765625, 32141.2109375] - await sensor.getGeomagneticField({'latitude':0, 'longitude':0, 'altitude':0}, Number.MAX_VALUE).then((data) => { - console.info('SensorJsTest_043 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z + ',geomagneticDip: ' + data.geomagneticDip - + ',deflectionAngle: ' + data.deflectionAngle + ',levelIntensity: ' + data.levelIntensity + ',totalIntensity: ' + data.totalIntensity) - expect(data.x).assertEqual(geomagneticComponent[0]) - expect(data.y).assertEqual(geomagneticComponent[1]) - expect(data.z).assertEqual(geomagneticComponent[2]) - expect(data.geomagneticDip).assertEqual(geomagneticComponent[3]) - expect(data.deflectionAngle).assertEqual(geomagneticComponent[4]) - expect(data.levelIntensity).assertEqual(geomagneticComponent[5]) - expect(data.totalIntensity).assertEqual(geomagneticComponent[6]) - }).catch((error) => { - console.info("promise::catch", error) - }); - done() - }) - /** * test * -- Gitee