提交 38fab1bd 编写于 作者: L liangzhenyu123

<liangzhenyu6@huawei.com>

Signed-off-by: Nliangzhenyu123 <liangzhenyu6@huawei.com>
上级 9f644467
......@@ -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.
先完成此消息的编辑!
想要评论请 注册