未验证 提交 4150bfc0 编写于 作者: O openharmony_ci 提交者: Gitee

!4614 js接口修改

Merge pull request !4614 from FangJinliang/pr_0716
...@@ -93,10 +93,10 @@ describe('ActsAnsPublishRemovalWantAgentTest', function () { ...@@ -93,10 +93,10 @@ describe('ActsAnsPublishRemovalWantAgentTest', function () {
* @tc.desc: set true and get true * @tc.desc: set true and get true
*/ */
it('SetEnabledForUninstallApp_test_0100', 0, async function (done) { it('SetEnabledForUninstallApp_test_0100', 0, async function (done) {
await notify.setSyncNotificationEnabledForUninstallApp( await notify.setSyncNotificationEnabledWithoutApp(
100,true,async() => { 100,true,async() => {
await notify.getSyncNotificationEnabledForUninstallApp(100, (err,data) => { await notify.getSyncNotificationEnabledWithoutApp(100, (err,data) => {
console.log("===>getSyncNotificationEnabledForUninstallApp===>"+err+data) console.log("===>getSyncNotificationEnabledWithoutApp===>"+err+data)
expect(data).assertEqual(true) expect(data).assertEqual(true)
done(); done();
}) })
...@@ -109,10 +109,10 @@ describe('ActsAnsPublishRemovalWantAgentTest', function () { ...@@ -109,10 +109,10 @@ describe('ActsAnsPublishRemovalWantAgentTest', function () {
* @tc.desc: set false and get false * @tc.desc: set false and get false
*/ */
it('SetEnabledForUninstallApp_test_0200', 0, async function (done) { it('SetEnabledForUninstallApp_test_0200', 0, async function (done) {
await notify.setSyncNotificationEnabledForUninstallApp( await notify.setSyncNotificationEnabledWithoutApp(
100,false,async() => { 100,false,async() => {
await notify.getSyncNotificationEnabledForUninstallApp(100, (err,data) => { await notify.getSyncNotificationEnabledWithoutApp(100, (err,data) => {
console.log("===>getSyncNotificationEnabledForUninstallApp===>"+err+data) console.log("===>getSyncNotificationEnabledWithoutApp===>"+err+data)
expect(data).assertEqual(false) expect(data).assertEqual(false)
done(); done();
}) })
...@@ -125,17 +125,17 @@ describe('ActsAnsPublishRemovalWantAgentTest', function () { ...@@ -125,17 +125,17 @@ describe('ActsAnsPublishRemovalWantAgentTest', function () {
* @tc.desc: set true and get true * @tc.desc: set true and get true
*/ */
it('SetEnabledForUninstallApp_test_0300', 0, async function (done) { it('SetEnabledForUninstallApp_test_0300', 0, async function (done) {
notify.setSyncNotificationEnabledForUninstallApp(100, true).then(() => { notify.setSyncNotificationEnabledWithoutApp(100, true).then(() => {
notify.getSyncNotificationEnabledForUninstallApp(100).then((data) => { notify.getSyncNotificationEnabledWithoutApp(100).then((data) => {
console.log("===>getSyncNotificationEnabledForUninstallApp===>"+data) console.log("===>getSyncNotificationEnabledWithoutApp===>"+data)
expect(data).assertEqual(true) expect(data).assertEqual(true)
done(); done();
}).catch((err) => { }).catch((err) => {
Logger.error(TAG, Logger.error(TAG,
`===>getSyncNotificationEnabledForUninstallApp failed because ${JSON.stringify(err)}`); `===>getSyncNotificationEnabledWithoutApp failed because ${JSON.stringify(err)}`);
}); });
}).catch((err) => { }).catch((err) => {
Logger.error(TAG, `===>setSyncNotificationEnabledForUninstallApp failed because ${JSON.stringify(err)}`); Logger.error(TAG, `===>setSyncNotificationEnabledWithoutApp failed because ${JSON.stringify(err)}`);
}); });
}) })
}) } }) }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册