From 9ca8ce2b90b920afb1ec1f05e64f1f8e15dd2341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E5=B0=8F=E9=9B=85?= Date: Thu, 29 Jun 2023 06:26:05 +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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 fdae02f5a..2a433feee 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 @@ -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) -- GitLab