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

<lidanyang16@huawei.com>

Signed-off-by: Nlidanyang16 <lidanyang16@huawei.com>
上级 e6c07a64
......@@ -78,18 +78,19 @@ describe('SystemParameterTest', function () {
*/
it('SUB_SENSORS_Sensor_JSTest_0020', 0, async function (done) {
console.info('SUB_SENSORS_Sensor_JSTest_0020 start');
await sensor.on(testNullSensorId, function (data) {
if (data) {
console.info('testRegisterSensortest002 on success');
expect(false).assertTrue();
done();
}
});
setTimeout(() => {
function onSensorCallback(data) {
console.info('SensorJsTest002 on error');
expect(false).assertTrue();
done();
}
try {
sensor.on(testNullSensorId, onSensorCallback);
} catch (error) {
console.info(error);
expect(true).assertTrue();
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.
先完成此消息的编辑!
想要评论请 注册