未验证 提交 9c880a36 编写于 作者: O openharmony_ci 提交者: Gitee

!3099 Modify use case

Merge pull request !3099 from 火箭龟/master_429
...@@ -369,11 +369,15 @@ describe('ReminderAgentTest', function () { ...@@ -369,11 +369,15 @@ describe('ReminderAgentTest', function () {
* @tc.desc Adds a reminder notification slot with the callback function. * @tc.desc Adds a reminder notification slot with the callback function.
*/ */
it('testAddNotificationSlotNorFun011', 0, async function (done) { it('testAddNotificationSlotNorFun011', 0, async function (done) {
function reminderCallback(err, data) { try {
let i = 0; function reminderCallback(err, data) {
expect(0).assertEqual(i); let i = 0;
} expect(0).assertEqual(i);
reminderAgent.addNotificationSlot(0, reminderCallback); }
reminderAgent.addNotificationSlot(0, reminderCallback);
} catch(error) {
console.info('testAddNotificationSlotNorFun011 slot err.code')
}
done(); done();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册