diff --git a/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/default/test/Hidebug.test.js b/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/default/test/Hidebug.test.js index 158a92ce8d33a48f086cb21492ba1b9823504f2d..f6f0e3c93cfa668f83c43164dd57b292a8957751 100644 --- a/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/default/test/Hidebug.test.js +++ b/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/default/test/Hidebug.test.js @@ -348,7 +348,7 @@ describe('HidebugJsTest', function () { try { let temp = hidebug.getServiceDump(10); console.info("ServiceDump is " + temp); - expect(temp.indexof('Success')!=-1).assertTrue(); + expect(temp.indexOf('Success')!=-1).assertTrue(); } catch (error) { expect().assertFail(); }