From 1af089b030f07cfb5d1b22a3aae0ea4cafef1258 Mon Sep 17 00:00:00 2001 From: lina123456 Date: Mon, 10 Jul 2023 20:52:06 +0800 Subject: [PATCH] fixed a83f588 from https://gitee.com/lina123456/xts_acts/pulls/9269 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 74ef60886..c8a6f3fe2 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