提交 3d2f3692 编写于 作者: L lidanyang16

<lidanyang16@huawei.com>

Signed-off-by: Nlidanyang16 <lidanyang16@huawei.com>
上级 e6c07a64
...@@ -78,18 +78,19 @@ describe('SystemParameterTest', function () { ...@@ -78,18 +78,19 @@ describe('SystemParameterTest', function () {
*/ */
it('SUB_SENSORS_Sensor_JSTest_0020', 0, async function (done) { it('SUB_SENSORS_Sensor_JSTest_0020', 0, async function (done) {
console.info('SUB_SENSORS_Sensor_JSTest_0020 start'); console.info('SUB_SENSORS_Sensor_JSTest_0020 start');
await sensor.on(testNullSensorId, function (data) { function onSensorCallback(data) {
if (data) { console.info('SensorJsTest002 on error');
console.info('testRegisterSensortest002 on success'); expect(false).assertTrue();
expect(false).assertTrue(); done();
done(); }
} try {
}); sensor.on(testNullSensorId, onSensorCallback);
setTimeout(() => { } catch (error) {
console.info(error);
expect(true).assertTrue(); expect(true).assertTrue();
done(); done();
}, 500) }
console.info('SUB_SENSORS_Sensor_JSTest_0020 end'); console.info('SUB_SENSORS_Sensor_JSTest_0020 end');
}) })
}) })
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册