提交 29109f0c 编写于 作者: N nan-xiansen 提交者: 南先森

fixed 5d30f198 from https://gitee.com/nan-xiansen/xts_acts/pulls/4101

【resourceschedule】【master】提醒代理模块用例修改
Signed-off-by: Nnan-xiansen <nanjinbin@huawei.com>
Change-Id: I58666d9260401cc18e68b4c80ae5e6894db45e02
上级 251f2182
...@@ -3085,48 +3085,6 @@ describe('ReminderAgentTest', function () { ...@@ -3085,48 +3085,6 @@ describe('ReminderAgentTest', function () {
}); });
done(); done();
}) })
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_034
* @tc.name testActionButtonTypeClose034
* @tc.desc test acton butto type is close.
*/
it('testActionButtonTypeClose034', 0, async function (done) {
let timer = {
reminderType: reminderAgent.ReminderType.ACTION_BUTTON_TYPE_CLOSE,
triggerTimeInSeconds: TRIGGER_TIME_IN_SECONDS
}
let expectId = -1;
function reminderCallback(err, reminderId) {
expect(reminderId).assertEqual(expectId);
}
reminderAgent.publishReminder(timer, (err, reminderId) => {
expectId = reminderId + 1;
reminderAgent.publishReminder(timer, reminderCallback);
})
done();
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_035
* @tc.name testActionButtonTypeSnooze035
* @tc.desc test acton butto type is snooze.
*/
it('testActionButtonTypeSnooze035', 0, async function (done) {
let timer = {
reminderType: reminderAgent.ReminderType.ACTION_BUTTON_TYPE_SNOOZE,
triggerTimeInSeconds: TRIGGER_TIME_IN_SECONDS
}
let expectId = -1;
function reminderCallback(err, reminderId) {
expect(reminderId).assertEqual(expectId);
}
reminderAgent.publishReminder(timer, (err, reminderId) => {
expectId = reminderId + 1;
reminderAgent.publishReminder(timer, reminderCallback);
})
done();
})
/** /**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_036 * @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_036
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册