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

<lidanyang16@huawei.com>

Signed-off-by: Nlidanyang16 <lidanyang16@huawei.com>
上级 e6c07a64
......@@ -78,17 +78,18 @@ 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');
function onSensorCallback(data) {
console.info('SensorJsTest002 on error');
expect(false).assertTrue();
done();
}
});
setTimeout(() => {
try {
sensor.on(testNullSensorId, onSensorCallback);
} catch (error) {
console.info(error);
expect(true).assertTrue();
done();
}, 500)
}
console.info('SUB_SENSORS_Sensor_JSTest_0020 end');
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册