提交 43047dff 编写于 作者: Y yanglifeng1217

<updata Encryption>

Signed-off-by: Nyanglifeng1217 <yanglifeng5@huawei.com>
上级 b3134942
......@@ -1801,7 +1801,7 @@ describe('deviceKvStoreCallbackTest', function () {
await kvStore.removeDeviceData('', function (err,data) {
if (err == undefined) {
console.info('testDeviceKvStoreRemoveDeviceData103 removeDeviceData success');
expect(null).assertFail();
expect(err == undefined).assertTrue();
} else {
console.info('testDeviceKvStoreRemoveDeviceData103 removeDeviceData fail');
}
......
......@@ -1990,11 +1990,11 @@ describe('deviceKvStorePromiseTest', function () {
it('testDeviceKvStoreRemoveDeviceData003', 0, async function (done) {
console.info('testDeviceKvStoreRemoveDeviceData003');
try {
await kvStore.removeDeviceData('').then((err) => {
await kvStore.removeDeviceData('').then(() => {
console.info('testDeviceKvStoreRemoveDeviceData003 removeDeviceData success');
expect(null).assertFail();
}).catch((err) => {
console.info('testDeviceKvStoreRemoveDeviceData003 removeDeviceData fail ' + err);
expect(null).assertFail();
});
}catch(e) {
console.info('testDeviceKvStoreRemoveDeviceData003 e ' + e);
......
......@@ -1760,7 +1760,7 @@ describe('singleKvStoreCallbackTest', function () {
await kvStore.removeDeviceData('', function (err,data) {
if (err == undefined) {
console.info('testSingleKvStoreRemoveDeviceData103 removeDeviceData success');
expect(null).assertFail();
expect(err == undefined).assertTrue();
} else {
console.info('testSingleKvStoreRemoveDeviceData103 removeDeviceData fail');
}
......
......@@ -1959,11 +1959,11 @@ describe('singleKvStorePromiseTest', function () {
it('testSingleKvStoreRemoveDeviceData003', 0, async function (done) {
console.info('testSingleKvStoreRemoveDeviceData003');
try {
await kvStore.removeDeviceData('').then((err) => {
await kvStore.removeDeviceData('').then(() => {
console.info('testSingleKvStoreRemoveDeviceData003 removeDeviceData success');
expect(null).assertFail();
}).catch((err) => {
console.info('testSingleKvStoreRemoveDeviceData003 removeDeviceData fail ' + err);
expect(null).assertFail();
});
}catch(e) {
console.info('testSingleKvStoreRemoveDeviceData003 e ' + e);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册