From 91890dceb81cc59f3f2754e4855538f9e88299f8 Mon Sep 17 00:00:00 2001 From: yuanyuhang Date: Mon, 25 Jul 2022 18:07:54 +0800 Subject: [PATCH] 1 Signed-off-by: yuanyuhang --- .../js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js b/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js index 064cc420b..8f378af3d 100644 --- a/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js +++ b/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js @@ -34,8 +34,10 @@ let genHuksOptions = { async function publicGenerateKeyFunc(srcKeyAlies, genHuksOptionsNONC) { await generateKey(srcKeyAlies, genHuksOptionsNONC) .then((data) => { - console.log(`test generateKey data: ${JSON.stringify(data)}`); + console.error(`test generateKey data: ${JSON.stringify(data)}`); expect(data.errorCode == 0).assertTrue(); + expect(data.outData == null).assertTrue(); + expect(data.properties == null).assertTrue(); }) .catch((err) => { console.log('test generateKey err information: ' + JSON.stringify(err)); -- GitLab