提交 48558157 编写于 作者: B bayanxing

注释用例

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 90cc5cb4
...@@ -175,29 +175,29 @@ describe('rdbStoreTest', function () { ...@@ -175,29 +175,29 @@ describe('rdbStoreTest', function () {
* @tc.number SUB_DDM_AppDataFWK_JSRDB_RdbStore_0060 * @tc.number SUB_DDM_AppDataFWK_JSRDB_RdbStore_0060
* @tc.desc rdb store deleteRdbStore * @tc.desc rdb store deleteRdbStore
*/ */
it('testRdbStore0006', 0, async function (done) { // it('testRdbStore0006', 0, async function (done) {
console.log(TAG + "************* testRdbStore0006 start *************"); // console.log(TAG + "************* testRdbStore0006 start *************");
//
let storePromise = dataRdb.getRdbStore(STORE_CONFIG, 4); // let storePromise = dataRdb.getRdbStore(STORE_CONFIG, 4);
storePromise.then(async (store) => { // storePromise.then(async (store) => {
try { // try {
await store.executeSql(CREATE_TABLE_TEST); // await store.executeSql(CREATE_TABLE_TEST);
let deletePromise = dataRdb.deleteRdbStore("rdbstore.db") // let deletePromise = dataRdb.deleteRdbStore("rdbstore.db")
deletePromise.then(()=>{ // deletePromise.then(()=>{
console.log(TAG + "deleteRdbStore promise done" + store); // console.log(TAG + "deleteRdbStore promise done" + store);
expect(true).assertTrue(); // expect(true).assertTrue();
}) // })
} catch (e) { // } catch (e) {
expect(null).assertFail(); // expect(null).assertFail();
} // }
}).catch((err) => { // }).catch((err) => {
expect(null).assertFail(); // expect(null).assertFail();
}) // })
await storePromise // await storePromise
storePromise = null // storePromise = null
done(); // done();
console.log(TAG + "************* testRdbStore0006 end *************"); // console.log(TAG + "************* testRdbStore0006 end *************");
}) // })
/** /**
* @tc.name rdb store deleteRdbStore * @tc.name rdb store deleteRdbStore
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册