提交 d737c380 编写于 作者: Y yuanyuhang

aaaa

Signed-off-by: Nyuanyuhang <yuanyuhang1@huawei.com>
上级 e30455e8
...@@ -38,6 +38,7 @@ async function publicGenerateKeyFunc(srcKeyAlies, genHuksOptionsNONC) { ...@@ -38,6 +38,7 @@ async function publicGenerateKeyFunc(srcKeyAlies, genHuksOptionsNONC) {
expect(data.errorCode == 0).assertTrue(); expect(data.errorCode == 0).assertTrue();
expect(data.outData == null).assertTrue(); expect(data.outData == null).assertTrue();
expect(data.properties == null).assertTrue(); expect(data.properties == null).assertTrue();
expect(huks.getSdkVersion(genHuksOptionsNONC) != null).assertTrue();
}) })
.catch((err) => { .catch((err) => {
console.log('test generateKey err information: ' + JSON.stringify(err)); console.log('test generateKey err information: ' + JSON.stringify(err));
......
...@@ -309,6 +309,8 @@ describe('SecurityHuksAccessControlJsunit', function () { ...@@ -309,6 +309,8 @@ describe('SecurityHuksAccessControlJsunit', function () {
expect(4).assertEqual(huks.HuksKeyFlag.HUKS_KEY_FLAG_DERIVE_KEY); expect(4).assertEqual(huks.HuksKeyFlag.HUKS_KEY_FLAG_DERIVE_KEY);
expect(0).assertEqual(huks.HuksKeyStorageType.HUKS_STORAGE_TEMP); expect(0).assertEqual(huks.HuksKeyStorageType.HUKS_STORAGE_TEMP);
expect(1).assertEqual(huks.HuksKeyStorageType.HUKS_STORAGE_PERSISTENT); expect(1).assertEqual(huks.HuksKeyStorageType.HUKS_STORAGE_PERSISTENT);
expect(0).assertEqual(huks.HuksSendType.HUKS_SEND_TYPE_ASYNC);
expect(1).assertEqual(huks.HuksSendType.HUKS_SEND_TYPE_SYNC);
expect(0).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_INVALID); expect(0).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_INVALID);
expect(268435456).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_INT); expect(268435456).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_INT);
expect(536870912).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_UINT); expect(536870912).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_UINT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册