未验证 提交 a2297749 编写于 作者: W wuxiaodan 提交者: Gitee

update distributedKVStorejstest/hap/src/main/js/test/KvManagerKVPromiseJsTest.js.

Signed-off-by: Nwuxiaodan <wuxiaodan5@huawei.com>
上级 d9a9b2ce
...@@ -99,6 +99,7 @@ describe('KVManagerPromiseTest', function () { ...@@ -99,6 +99,7 @@ describe('KVManagerPromiseTest', function () {
}); });
} catch (e) { } catch (e) {
console.error('SUB_DDM_DKV_KVMANAGER_GETKVSTORE_PROMISE_0100 getKVStore e ' + `, error code is ${e.code}, message is ${e.message}`); console.error('SUB_DDM_DKV_KVMANAGER_GETKVSTORE_PROMISE_0100 getKVStore e ' + `, error code is ${e.code}, message is ${e.message}`);
expect(e.code == 401).assertTrue();
} }
done(); done();
}) })
...@@ -120,6 +121,7 @@ describe('KVManagerPromiseTest', function () { ...@@ -120,6 +121,7 @@ describe('KVManagerPromiseTest', function () {
}); });
} catch (e) { } catch (e) {
console.error('SUB_DDM_DKV_KVMANAGER_GETKVSTORE_PROMISE_0200 getKVStore e ' + `, error code is ${e.code}, message is ${e.message}`); console.error('SUB_DDM_DKV_KVMANAGER_GETKVSTORE_PROMISE_0200 getKVStore e ' + `, error code is ${e.code}, message is ${e.message}`);
expect(e.code == 401).assertTrue();
} }
done(); done();
}) })
...@@ -146,6 +148,7 @@ describe('KVManagerPromiseTest', function () { ...@@ -146,6 +148,7 @@ describe('KVManagerPromiseTest', function () {
expect(null).assertFail(); expect(null).assertFail();
}).catch((err) => { }).catch((err) => {
console.error('SUB_DDM_DKV_KVMANAGER_GETKVSTORE_PROMISE_0300 getKVStore err ' + `, error code is ${err.code}, message is ${err.message}`); console.error('SUB_DDM_DKV_KVMANAGER_GETKVSTORE_PROMISE_0300 getKVStore err ' + `, error code is ${err.code}, message is ${err.message}`);
expect(err.code == 401).assertTrue();
}); });
done(); done();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册