未验证 提交 29cb30d4 编写于 作者: O openharmony_ci 提交者: Gitee

!3884 【Distributeddatamgr】【master】用例修改

Merge pull request !3884 from 梁梁/master
......@@ -15,7 +15,7 @@
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
import dataRdb from '@ohos.data.rdb'
import abilityFeatureAbility from '@ohos.ability.featureAbility'
import dataShare from '@ohos.data.dataShare'
import dataSharePredicates from '@ohos.data.dataSharePredicates'
const TAG = "[RDB_JSKITS_TEST]"
const CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (" + "id INTEGER PRIMARY KEY AUTOINCREMENT, "
......@@ -128,7 +128,7 @@ describe('rdbStoreDataSharePredicatesTest', function () {
"blobType": u8,
}
let predicates = new dataShare.DataSharePredicates()
let predicates = new dataSharePredicates.DataSharePredicates()
predicates.equalTo("name", "zhangsan")
let promiseUpdate = rdbStore.update("test", valueBucket, predicates)
promiseUpdate.then(async (ret) => {
......@@ -189,7 +189,7 @@ describe('rdbStoreDataSharePredicatesTest', function () {
"blobType": u8,
}
let predicates = new dataShare.DataSharePredicates()
let predicates = new dataSharePredicates.DataSharePredicates()
predicates.equalTo("name", "zhangsan")
await rdbStore.update("test", valueBucket, predicates, async function (err, ret) {
......@@ -241,7 +241,7 @@ describe('rdbStoreDataSharePredicatesTest', function () {
}
await rdbStore.insert("test", valueBucket)
let predicates = new dataShare.DataSharePredicates()
let predicates = new dataSharePredicates.DataSharePredicates()
predicates.equalTo("name", "zhangsan")
let queryPromise = rdbStore.query("test", predicates)
queryPromise.then((resultSet) => {
......@@ -285,7 +285,7 @@ describe('rdbStoreDataSharePredicatesTest', function () {
}
await rdbStore.insert("test", valueBucket)
let predicates = new dataShare.DataSharePredicates()
let predicates = new dataSharePredicates.DataSharePredicates()
predicates.equalTo("name", "zhangsan")
await rdbStore.query("test", predicates, ["ID", "NAME", "AGE", "SALARY", "blobType"],
......@@ -328,7 +328,7 @@ describe('rdbStoreDataSharePredicatesTest', function () {
}
await rdbStore.insert("test", valueBucket)
let predicates = new dataShare.DataSharePredicates()
let predicates = new dataSharePredicates.DataSharePredicates()
predicates.equalTo("name", "zhangsan")
let deletePromise = rdbStore.delete("test", predicates)
deletePromise.then(async (ret) => {
......@@ -366,7 +366,7 @@ describe('rdbStoreDataSharePredicatesTest', function () {
}
await rdbStore.insert("test", valueBucket)
let predicates = new dataShare.DataSharePredicates()
let predicates = new dataSharePredicates.DataSharePredicates()
predicates.equalTo("name", "zhangsan")
await rdbStore.delete("test", predicates, async function (err, ret) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册