提交 d6b2d4bb 编写于 作者: Q quanli

quanli1@huawei.com

Signed-off-by: Nquanli <quanli1@huawei.com>
上级 dda2c9e3
......@@ -200,7 +200,7 @@ describe('bluetoothBLETest', function() {
expect(ret).assertTrue();
await gattClient.getDeviceName().then((data) => {
console.info('[bluetooth_js] device name' + JSON.stringify(data))
expect(data).assertNull();
expect(true).assertEqual(data != null);
done();
}).catch(err => {
console.error('bluetooth getDeviceName has error: '+ err);
......@@ -229,7 +229,7 @@ describe('bluetoothBLETest', function() {
expect(ret).assertTrue();
gattClient.getDeviceName((err, data)=> {
console.info('[bluetooth_js]getname value:'+JSON.stringify(data));
expect(data).assertNull();
expect(true).assertEqual(data != null);
let disconnect = gattClient.disconnect();
console.info('[bluetooth_js] gatt getname1 disconnect:' + disconnect);
expect(disconnect).assertEqual(false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册