From 38fab1bde6b10b99252c16d5ce6147b07c064589 Mon Sep 17 00:00:00 2001 From: liangzhenyu123 Date: Tue, 28 Jun 2022 18:40:26 +0800 Subject: [PATCH] Signed-off-by: liangzhenyu123 --- .../default/test/RdbStoreDataShareJsunit.test.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDataShareJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDataShareJsunit.test.js index d2061ccf6..fb0b0bc03 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDataShareJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDataShareJsunit.test.js @@ -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) { -- GitLab