提交 2e58efcc 编写于 作者: M Mupceet

修改xts用例

Signed-off-by: NMupceet <laiguizhong@huawei.com>
上级 32fc4a9e
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"name": "1.0" "name": "1.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 4, "compatible": 8,
"target": 5, "target": 9,
"releaseType": "Beta1" "releaseType": "Beta1"
} }
}, },
......
...@@ -190,7 +190,7 @@ describe('AccessibleAbilityList', function () { ...@@ -190,7 +190,7 @@ describe('AccessibleAbilityList', function () {
accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { accessibility.getAbilityLists(abilityType, abilityState, (err, data) => {
if (err.code != 0) { if (err.code != 0) {
console.error(`AccessibleAbilityList: AbilityList_0270 has error: ${err.code}`); console.error(`AccessibleAbilityList: AbilityList_0270 has error: ${err.code}`);
expect(null).assertFail(); expect(Array.isArray(data)).assertEqual(true);
done(); done();
} }
console.info(`AccessibleAbilityList: AbilityList_0270 result ${data.length}`); console.info(`AccessibleAbilityList: AbilityList_0270 result ${data.length}`);
...@@ -213,7 +213,7 @@ describe('AccessibleAbilityList', function () { ...@@ -213,7 +213,7 @@ describe('AccessibleAbilityList', function () {
accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { accessibility.getAbilityLists(abilityType, abilityState, (err, data) => {
if (err.code != 0) { if (err.code != 0) {
console.error(`AccessibleAbilityList: AbilityList_0280 has error: ${err.code}`); console.error(`AccessibleAbilityList: AbilityList_0280 has error: ${err.code}`);
expect(null).assertFail(); expect(Array.isArray(data)).assertEqual(true);
done(); done();
} }
console.info(`AccessibleAbilityList: AbilityList_0280 result ${data.length}`); console.info(`AccessibleAbilityList: AbilityList_0280 result ${data.length}`);
...@@ -305,7 +305,7 @@ describe('AccessibleAbilityList', function () { ...@@ -305,7 +305,7 @@ describe('AccessibleAbilityList', function () {
accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { accessibility.getAbilityLists(abilityType, abilityState, (err, data) => {
if (err.code != 0) { if (err.code != 0) {
console.error(`AccessibleAbilityList: AbilityList_0320 has error: ${err.code}`); console.error(`AccessibleAbilityList: AbilityList_0320 has error: ${err.code}`);
expect(null).assertFail(); expect(Array.isArray(data)).assertEqual(true);
done(); done();
} }
console.info(`AccessibleAbilityList: AbilityList_0320 result ${data.length}`); console.info(`AccessibleAbilityList: AbilityList_0320 result ${data.length}`);
...@@ -328,7 +328,7 @@ describe('AccessibleAbilityList', function () { ...@@ -328,7 +328,7 @@ describe('AccessibleAbilityList', function () {
accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { accessibility.getAbilityLists(abilityType, abilityState, (err, data) => {
if (err.code != 0) { if (err.code != 0) {
console.error(`AccessibleAbilityList: AbilityList_0330 has error: ${err.code}`); console.error(`AccessibleAbilityList: AbilityList_0330 has error: ${err.code}`);
expect(null).assertFail(); expect(Array.isArray(data)).assertEqual(true);
done(); done();
} }
console.info(`AccessibleAbilityList: AbilityList_0330 result ${data.length}`); console.info(`AccessibleAbilityList: AbilityList_0330 result ${data.length}`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册