未验证 提交 7e084c11 编写于 作者: 于小雅 提交者: Gitee

update /test/RelationalStoreAssetResultSetJsunit.test.js.

Signed-off-by: N于小雅 <yuxiaoya@huawei.com>
上级 126238c6
...@@ -100,17 +100,17 @@ export default function relationalStoreAssetResultSetTest() { ...@@ -100,17 +100,17 @@ export default function relationalStoreAssetResultSetTest() {
"data2": asset2, "data2": asset2,
"data3": assets1, "data3": assets1,
} }
await rdbStore.insert("test", valuesBucket) await rdbStore.insert("test", valuesBucket);
valuesBucket = { valuesBucket = {
"data1": asset2, "data1": asset2,
"data2": asset3, "data2": asset3,
"data3": assets2, "data3": assets2,
} }
await rdbStore.insert("test", valuesBucket) await rdbStore.insert("test", valuesBucket);
valuesBucket = { valuesBucket = {
"data1": asset1, "data1": asset1,
} }
await rdbStore.insert("test", valuesBucket) await rdbStore.insert("test", valuesBucket);
console.log(TAG + "createTest data end"); console.log(TAG + "createTest data end");
} }
...@@ -119,7 +119,7 @@ export default function relationalStoreAssetResultSetTest() { ...@@ -119,7 +119,7 @@ export default function relationalStoreAssetResultSetTest() {
let valuesBucket = { let valuesBucket = {
"data1": asset4, "data1": asset4,
} }
await rdbStore.insert("test", valuesBucket) await rdbStore.insert("test", valuesBucket);
console.log(TAG + "createErrorTest data end"); console.log(TAG + "createErrorTest data end");
} }
...@@ -134,7 +134,7 @@ export default function relationalStoreAssetResultSetTest() { ...@@ -134,7 +134,7 @@ export default function relationalStoreAssetResultSetTest() {
let predicates = await new data_relationalStore.RdbPredicates("test") let predicates = await new data_relationalStore.RdbPredicates("test")
let resultSet = await rdbStore.query(predicates) let resultSet = await rdbStore.query(predicates)
try { try {
expect(true).assertEqual(resultSet.goToFirstRow()) expect(true).assertEqual(resultSet.goToFirstRow());
const id = resultSet.getLong(resultSet.getColumnIndex("id")) const id = resultSet.getLong(resultSet.getColumnIndex("id"))
const data1 = resultSet.getAsset(resultSet.getColumnIndex("data1")) const data1 = resultSet.getAsset(resultSet.getColumnIndex("data1"))
console.log(TAG + "id=" + id + ", data1=" + data1); console.log(TAG + "id=" + id + ", data1=" + data1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册