未验证 提交 9ca8ce2b 编写于 作者: 于小雅 提交者: Gitee

update /test/RelationalStoreAssetResultSetJsunit.test.js.

Signed-off-by: N于小雅 <yuxiaoya@huawei.com>
上级 ba2decbd
......@@ -243,8 +243,8 @@ export default function relationalStoreAssetResultSetTest() {
const data2 = resultSet.getAsset(resultSet.getColumnIndex("data2"))
expect(null).assertFail();
} catch (e) {
console.log(TAG + "testGetAsset0003 throw error: " + e);
expect(true).assetTrue();
console.log(TAG + "testGetAsset0003 throw error: " + e.code);
expect(e.code == 14800000).assertTrue();
} finally {
resultSet.close();
expect(true).assertEqual(resultSet.isClosed)
......@@ -277,7 +277,7 @@ export default function relationalStoreAssetResultSetTest() {
expect(null).assertFail();
} catch (e) {
console.log(TAG + "testGetAsset0004 throw error: " + e);
expect(true).assetTrue();
expect(e.code == 14800000).assertTrue();
} finally {
resultSet.close();
expect(true).assertEqual(resultSet.isClosed)
......@@ -310,7 +310,7 @@ export default function relationalStoreAssetResultSetTest() {
expect(null).assertFail();
} catch (e) {
console.log(TAG + "testGetAsset0005 throw error: " + e);
expect(true).assetTrue();
expect(e.code == 14800000).assertTrue();
} finally {
resultSet.close();
expect(true).assertEqual(resultSet.isClosed)
......@@ -343,7 +343,7 @@ export default function relationalStoreAssetResultSetTest() {
expect(null).assertFail();
} catch (e) {
console.log(TAG + "testGetAsset0006 throw error: " + e);
expect(true).assetTrue();
expect(e.code == 14800000).assertTrue();
} finally {
resultSet.close();
expect(true).assertEqual(resultSet.isClosed)
......@@ -639,7 +639,7 @@ export default function relationalStoreAssetResultSetTest() {
expect(null).assertFail();
} catch (e) {
console.log(TAG + "testGetAssets0003 throw error" + e);
expect(true).assetTrue();
expect(e.code == 14800000).assertTrue();
} finally {
resultSet.close();
expect(true).assertEqual(resultSet.isClosed)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册