未验证 提交 bf8b53a8 编写于 作者: 何海涛 提交者: Gitee

update account/appaccount/actsaccounttest/src/main/js/test/OnOff.js.

Signed-off-by: N何海涛 <hehaitao5@huawei.com>
上级 3bf08d68
......@@ -326,14 +326,13 @@ export default function ActsAccountChangeOnOff() {
await appAccountManager.enableAppAccess("onoff_delete", "com.example.actsaccountsceneonoff");
function unSubscriberCallback(err){
console.debug("====>unsubscribe 0500 err:" + JSON.stringify(err));
expect(err).assertEqual(null);
done();
}
function subscriberCallback(err, data){
console.debug("====>subscriberCallback 0500 data:" + JSON.stringify(data));
expect(data.event).assertEqual("account_on_change_delete");
expect(data.data).assertEqual("SUCCESS");
commonevent.unsubscribe(subscriber, unSubscriberCallback);
done();
}
function publishCallback(err){
console.debug("====>publish call back err:" + JSON.stringify(err));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册