From a83f588fef901b3bdfbdd992075db4b47923cad5 Mon Sep 17 00:00:00 2001 From: lina123456 Date: Mon, 10 Jul 2023 20:52:06 +0800 Subject: [PATCH] Signed-off-by: lina123456 --- .../entry/src/main/ets/test/PasteBoardRecord.test.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 52c392e97..496a20fd3 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(); }) -- GitLab