diff --git a/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js b/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js index dbebb99efee32ab968b7158b4f2a02ec760674b5..4577dfbc77288cf7edde053cf46f9dd090985010 100755 --- a/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js +++ b/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js @@ -243,7 +243,7 @@ describe('HilogJsTest', function () { it('testHilogJsApi16', 2, function () { console.info('testHilogJsApi16 start'); try{ - hilog.debug(0xD001400, "HILOGTEST", "%{public}", ['hilogJs1800']) + hilog.debug(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs1800']) }catch(error){ console.log(`testHilogJsApi16 got an error: ${JSON.stringify(error)}`) expect().assertFail();