From 7e084c11e7dac2e424cd0b373a49dce327ba8bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E5=B0=8F=E9=9B=85?= Date: Mon, 26 Jun 2023 07:03:41 +0000 Subject: [PATCH] update /test/RelationalStoreAssetResultSetJsunit.test.js. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 于小雅 --- .../test/RelationalStoreAssetResultSetJsunit.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreAssetResultSetJsunit.test.js b/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreAssetResultSetJsunit.test.js index 7ed1f4961..2f84fdf96 100644 --- a/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreAssetResultSetJsunit.test.js +++ b/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreAssetResultSetJsunit.test.js @@ -100,17 +100,17 @@ export default function relationalStoreAssetResultSetTest() { "data2": asset2, "data3": assets1, } - await rdbStore.insert("test", valuesBucket) + await rdbStore.insert("test", valuesBucket); valuesBucket = { "data1": asset2, "data2": asset3, "data3": assets2, } - await rdbStore.insert("test", valuesBucket) + await rdbStore.insert("test", valuesBucket); valuesBucket = { "data1": asset1, } - await rdbStore.insert("test", valuesBucket) + await rdbStore.insert("test", valuesBucket); console.log(TAG + "createTest data end"); } @@ -119,7 +119,7 @@ export default function relationalStoreAssetResultSetTest() { let valuesBucket = { "data1": asset4, } - await rdbStore.insert("test", valuesBucket) + await rdbStore.insert("test", valuesBucket); console.log(TAG + "createErrorTest data end"); } @@ -134,7 +134,7 @@ export default function relationalStoreAssetResultSetTest() { let predicates = await new data_relationalStore.RdbPredicates("test") let resultSet = await rdbStore.query(predicates) try { - expect(true).assertEqual(resultSet.goToFirstRow()) + expect(true).assertEqual(resultSet.goToFirstRow()); const id = resultSet.getLong(resultSet.getColumnIndex("id")) const data1 = resultSet.getAsset(resultSet.getColumnIndex("data1")) console.log(TAG + "id=" + id + ", data1=" + data1); -- GitLab