提交 39132706 编写于 作者: F fangJinliang1

add test

Signed-off-by: NfangJinliang1 <fangjinliang1@huawei.com>
Change-Id: Ica1cc11f8c4669c7e3de79991fb0d718970233e3
上级 beb8411e
......@@ -79,13 +79,15 @@ describe('SUB_NOTIFICATION_CES_SYSTEM_API_TEST', function () {
it('SUB_NOTIFICATION_CES_SYSTEM_API_TEST_0300', 0, async function (done) {
console.info(`${TAG} SUB_NOTIFICATION_CES_SYSTEM_API_TEST_0300 START`);
commonEventManager.removeStickyCommonEvent("sticky_event", (error) => {
if (error) {
commonEventManager.removeStickyCommonEvent("sticky_event", (err) => {
if (err) {
console.info(`${TAG} remove sticky event AsyncCallback errCode: ${err.code}, errMes: ${err.message}`)
expect(err.code).assertEqual(202);
done()
} else {
console.info("${TAG} remove sticky event AsyncCallback success");
expect(false).assertTrue()
done()
}
});
......@@ -103,9 +105,11 @@ describe('SUB_NOTIFICATION_CES_SYSTEM_API_TEST', function () {
commonEventManager.removeStickyCommonEvent("sticky_event").then(() => {
console.info("${TAG} remove sticky event AsyncCallback success");
expect(false).assertTrue()
done()
}).catch ((err) => {
console.info(`${TAG} remove sticky event AsyncCallback errCode: ${err.code}, errMes: ${err.message}`)
expect(err.code).assertEqual(202);
done()
});
console.info(`${TAG} SUB_NOTIFICATION_CES_SYSTEM_API_TEST_0400 END`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册