提交 120e2af4 编写于 作者: L lichenlong1

description: fix js test defect

Signed-off-by: Nlichenlong1 <lichenlong1@huawei.com>
上级 9670e5c8
...@@ -156,7 +156,7 @@ describe('rdbResultSetTest', function () { ...@@ -156,7 +156,7 @@ describe('rdbResultSetTest', function () {
const id = resultSet.getLong(resultSet.getColumnIndex("id")) const id = resultSet.getLong(resultSet.getColumnIndex("id"))
const data4 = resultSet.getBlob(resultSet.getColumnIndex("data4")) const data4 = resultSet.getBlob(resultSet.getColumnIndex("data4"))
console.log(TAG + "id=" + id + ", data4=" + data4); console.log(TAG + "id=" + id + ", data4=" + data4);
expect("").assertEqual(data4); expect(0).assertEqual(data4.length);
} }
resultSet.close(); resultSet.close();
expect(true).assertEqual(resultSet.isClosed) expect(true).assertEqual(resultSet.isClosed)
......
...@@ -50,7 +50,7 @@ describe('storageTest', function () { ...@@ -50,7 +50,7 @@ describe('storageTest', function () {
* @tc.desc Constructor test * @tc.desc Constructor test
*/ */
it('testConstructor002', 0, function () { it('testConstructor002', 0, function () {
expect(mPref).assertEqual('[object Object]'); expect(typeof mPref).assertEqual("object");
}) })
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册