From eccf941300da88516a7b5e81be6e26f9a22820bd Mon Sep 17 00:00:00 2001 From: wangzx0705 Date: Thu, 27 Jul 2023 07:28:27 +0000 Subject: [PATCH] modify some code format Signed-off-by: wangzx0705 --- .../src/main/ets/test/GetSystemVolumeInDb.test.ets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets b/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets index e295c35e8..a68e9e656 100644 --- a/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets +++ b/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets @@ -435,10 +435,10 @@ export default function audioManagerTest() { await audioVolumeGroupManager.getSystemVolumeInDb(3, audio.DeviceType.SPEAKER, (err, data) => { if (err) { console.log(`${TagFrmwk}getSystemVolumeInDb : error ${err.message} ${err.code}`); - expect(Number(err.code)).assertEqual(env.INVALID_INPUT_PARAMETER_6800101); + expect(false).assertTrue(); done(); } else { - console.log(`${TagFrmwk}: getSystemVolumeInDb : error ${err.message} ${err.code}`); + console.log(`${TagFrmwk}: getSystemVolumeInDb testcase FAIL! `); expect(false).assertTrue(); done(); } @@ -466,7 +466,7 @@ export default function audioManagerTest() { expect(false).assertTrue(); done(); } else { - console.log(`${TagFrmwk} getSystemVolumeInDb : error ${err.message} ${err.code}`); + console.log(`${TagFrmwk}: getSystemVolumeInDb testcase FAIL! `); expect(false).assertTrue(); done(); } @@ -494,7 +494,7 @@ export default function audioManagerTest() { expect(false).assertTrue(); done(); } else { - console.log(`${TagFrmwk}:getSystemVolumeInDb error ${err.message} ${err.code}`); + console.log(`${TagFrmwk}: getSystemVolumeInDb testcase FAIL! `); expect(false).assertTrue(); done(); } -- GitLab