diff --git a/notification/ans_standard/actsansslottest/actsansgetslottestpromise/entry/src/main/js/test/ExampleJsunit.test.js b/notification/ans_standard/actsansslottest/actsansgetslottestpromise/entry/src/main/js/test/ExampleJsunit.test.js index 18c93b4f79cc4da08b20be56b467cb1017807656..fceb66a35bc657c39bc1aec0fd2827702b66d027 100755 --- a/notification/ans_standard/actsansslottest/actsansgetslottestpromise/entry/src/main/js/test/ExampleJsunit.test.js +++ b/notification/ans_standard/actsansslottest/actsansgetslottestpromise/entry/src/main/js/test/ExampleJsunit.test.js @@ -16,7 +16,6 @@ import notification from '@ohos.notification' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' const TIMEOUT = 2000; -const SOUNDURL = "file://system/etc/Light.ogg"; describe('ActsAnsGetSlotTestPromise', function () { /* @@ -46,7 +45,6 @@ describe('ActsAnsGetSlotTestPromise', function () { expect(data.bypassDnd).assertEqual(false); expect(data.lockscreenVisibility).assertEqual(2); expect(data.vibrationEnabled).assertEqual(true); - expect(data.sound).assertEqual(SOUNDURL); expect(data.lightEnabled).assertEqual(false); expect(data.lightColor).assertEqual(0); console.debug("====>getSlot ActsAnsGetSlotTestPromise_0100 finish====>"); @@ -89,7 +87,6 @@ describe('ActsAnsGetSlotTestPromise', function () { expect(data.bypassDnd).assertEqual(false); expect(data.lockscreenVisibility).assertEqual(2); expect(data.vibrationEnabled).assertEqual(true); - expect(data.sound).assertEqual(SOUNDURL); expect(data.lightEnabled).assertEqual(false); expect(data.lightColor).assertEqual(0); console.debug("====>getSlot Promise SERVICE_INFORMATION ActsAnsGetSlotTestPromise_0200 finish====>"); @@ -132,7 +129,6 @@ describe('ActsAnsGetSlotTestPromise', function () { expect(data.bypassDnd).assertEqual(false); expect(data.lockscreenVisibility).assertEqual(3); expect(data.vibrationEnabled).assertEqual(false); - expect(data.sound).assertEqual(""); expect(data.lightEnabled).assertEqual(false); expect(data.lightColor).assertEqual(0); console.debug("====>getSlot Promise CONTENT_INFORMATION ActsAnsGetSlotTestPromise_0300 finish====>"); diff --git a/notification/ans_standard/publish_test/publishcontentype/publishtype/Test.json b/notification/ans_standard/publish_test/publishcontentype/publishtype/Test.json index e8c76a7ea3155d211a5f47ae50555b22d7abf4f7..aacba63d7ae128dab342db8e2776a30252d80486 100644 --- a/notification/ans_standard/publish_test/publishcontentype/publishtype/Test.json +++ b/notification/ans_standard/publish_test/publishcontentype/publishtype/Test.json @@ -9,7 +9,7 @@ "kits": [ { "test-file-name": [ - "ActsAnsNotificationTest" + "ActsAnsNotificationTest.hap" ], "type": "AppInstallKit", "cleanup-apps": true