diff --git a/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardRecord.test.ets b/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardRecord.test.ets index 52c392e97f9dfe5229eafe81d19d51ad8ddca38f..496a20fd3e0497630db7ff295e273f84452dfe79 100644 --- a/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardRecord.test.ets +++ b/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/PasteBoardRecord.test.ets @@ -725,10 +725,10 @@ export default function pasteBoardRecordTest(){ pasteData.addRecord("stringRecord513", ARRAY_BUFFER); }catch(err){ console.info("Add record error, err code is: " + err.code) - expect(err.code).assertEqual("12900002") + expect(err!=undefined).assertFail(); } let hasType = pasteData.hasType("stringRecord513") - expect(hasType == false).assertTrue(); + expect(hasType == true).assertTrue(); console.info("SUB_PASTEBOARD_FUNCTION_ETS_ADDRECORD_1100 end") done(); })