diff --git a/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js b/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js index 463e2e5e699211ec79d14c4e0cb496fce6e00b2d..a14697daeb358713b854ef3002703385b38b0814 100644 --- a/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js +++ b/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js @@ -260,7 +260,7 @@ describe('HilogJsTest', function () { it('testHilogJsApi17', 2, function () { console.info('testHilogJsApi17 start'); try{ - hilog.debug(0x3200, "HILOGTEST", "%{public}f", [2.1]) + hilog.debug(0x3200, "HILOGTEST", "%{public}d", [2.1]) }catch(error){ console.log(`testHilogJsApi17 got an error: ${JSON.stringify(error)}`) expect().assertFail();