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

<updata Encryption>

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