diff --git a/hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/default/test/faultlogger.test.js b/hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/default/test/faultlogger.test.js index 107e99048a58921ad10b731282136fdc7fc274d5..8a535ad7f7711392422e3747fc87aed82ad7660a 100644 --- a/hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/default/test/faultlogger.test.js +++ b/hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/default/test/faultlogger.test.js @@ -103,14 +103,14 @@ describe("FaultlogJsTest", function () { console.info("faultloggertestsummary02 " + i + " fullLog.length " + ret[i].fullLog.length); if (ret[i].fullLog.indexOf("faultloggertestsummary02 " + (loopTimes - 1 - i)) != -1) { console.info("FaultlogJsTest_002 " + ret[i].fullLog.length); - expect(typeof(ret[i].pid).assertEqual("number")); - expect(typeof(ret[i].uid).assertEqual("number")); - expect(typeof(ret[i].type).assertEqual("number")); - expect(typeof(ret[i].timestamp).assertEqual("number")); - expect(typeof(ret[i].reason).assertEqual("string")); - expect(typeof(ret[i].module).assertEqual("string")); - expect(typeof(ret[i].summary).assertEqual("string")); - expect(typeof(ret[i].fullLog).assertEqual("string")); + expect(typeof(ret[i].pid) == "number").assertTrue(); + expect(typeof(ret[i].uid) == "number").assertTrue(); + expect(typeof(ret[i].type) == "number").assertTrue(); + expect(typeof(ret[i].timestamp) == "number").assertTrue(); + expect(typeof(ret[i].reason) == "string").assertTrue(); + expect(typeof(ret[i].module) == "string").assertTrue(); + expect(typeof(ret[i].summary) == "string").assertTrue(); + expect(typeof(ret[i].fullLog) == "string").assertTrue(); expect(true).assertTrue(); } else { expect(false).assertTrue();