提交 2413e4d5 编写于 作者: G gaoxi785

wifi

Signed-off-by: Ngaoxi785 <gaoxi785@huawei.com>
上级 e781d6b9
...@@ -54,7 +54,6 @@ describe("Telephony_NetManager_NetWorkTest", function () { ...@@ -54,7 +54,6 @@ describe("Telephony_NetManager_NetWorkTest", function () {
console.info("NetManager subscribe "+JSON.stringify(data)); console.info("NetManager subscribe "+JSON.stringify(data));
expect(data.type === "WiFi").assertTrue(); expect(data.type === "WiFi").assertTrue();
expect(data.metered === false).assertTrue(); expect(data.metered === false).assertTrue();
done();
}, },
fail : function(data,code){ fail : function(data,code){
expect().assertFail(); expect().assertFail();
...@@ -64,6 +63,7 @@ describe("Telephony_NetManager_NetWorkTest", function () { ...@@ -64,6 +63,7 @@ describe("Telephony_NetManager_NetWorkTest", function () {
setTimeout(()=>{ setTimeout(()=>{
network.unsubscribe(); network.unsubscribe();
console.info("async function unsubscribe end"); console.info("async function unsubscribe end");
done();
},100); },100);
}); });
...@@ -103,7 +103,6 @@ describe("Telephony_NetManager_NetWorkTest", function () { ...@@ -103,7 +103,6 @@ describe("Telephony_NetManager_NetWorkTest", function () {
console.info("NetManager subscribe 1 "+JSON.stringify(data)); console.info("NetManager subscribe 1 "+JSON.stringify(data));
expect(data.type === "WiFi").assertTrue(); expect(data.type === "WiFi").assertTrue();
expect(data.metered === false).assertTrue(); expect(data.metered === false).assertTrue();
done();
}, },
fail : function(data,code){ fail : function(data,code){
expect().assertFail(); expect().assertFail();
...@@ -113,6 +112,7 @@ describe("Telephony_NetManager_NetWorkTest", function () { ...@@ -113,6 +112,7 @@ describe("Telephony_NetManager_NetWorkTest", function () {
setTimeout(()=>{ setTimeout(()=>{
network.unsubscribe(); network.unsubscribe();
console.info("async function unsubscribe end"); console.info("async function unsubscribe end");
done();
},100); },100);
}); });
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册