提交 ed7e3fe4 编写于 作者: X xsterling

testcase update.

Signed-off-by: Nxsterling <huangjiaqi19@huawei.com>
上级 fd1732a7
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index'
import factory from '@ohos.data.distributedData' import factory from '@ohos.data.distributedData';
const TEST_BUNDLE_NAME = 'ohos.acts.distributeddatamgr'; const TEST_BUNDLE_NAME = 'ohos.acts.distributeddatamgr';
const TEST_STORE_ID = 'storeId'; const TEST_STORE_ID = 'storeId';
...@@ -35,6 +35,7 @@ describe('KvStoreResultSetTest', function() { ...@@ -35,6 +35,7 @@ describe('KvStoreResultSetTest', function() {
encrypt : false, encrypt : false,
backup : false, backup : false,
autoSync : true, autoSync : true,
kvStoreType : factory.KVStoreType.SINGLE_VERSION, kvStoreType : factory.KVStoreType.SINGLE_VERSION,
schema : '', schema : '',
securityLevel : factory.SecurityLevel.S2, securityLevel : factory.SecurityLevel.S2,
......
...@@ -275,11 +275,11 @@ describe('SchemaTest', function() { ...@@ -275,11 +275,11 @@ describe('SchemaTest', function() {
let schema = new ddm.Schema(); let schema = new ddm.Schema();
schema.root.appendChild(english); schema.root.appendChild(english);
schema.indexes = []; // indexex set to empty array. console.log("schema without indexes: " + schema.toJsonString());
console.log("schema: " + schema.toJsonString()); schema.indexes = []; // indexex set to empty array -> invalid indexes.
} catch (e) {
console.log("schema fail on exception: " + e);
expect(null).assertFail(); expect(null).assertFail();
} catch (e) {
console.log("schema exception is ok: " + e);
} }
done(); done();
}) })
......
...@@ -832,8 +832,8 @@ describe('SingleKvStoreCallbackTest', function () { ...@@ -832,8 +832,8 @@ describe('SingleKvStoreCallbackTest', function () {
}catch(e) { }catch(e) {
console.log('testSingleKvStoreOnSyncComplete101 e' + e); console.log('testSingleKvStoreOnSyncComplete101 e' + e);
expect(null).assertFail(); expect(null).assertFail();
done();
} }
done();
}) })
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册