提交 ed7e3fe4 编写于 作者: X xsterling

testcase update.

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