From 2e58efccadf50805dd4cb86767470de375b931e9 Mon Sep 17 00:00:00 2001 From: Mupceet Date: Fri, 24 Jun 2022 16:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9xts=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mupceet --- .../accessibleabilitylist/entry/src/main/config.json | 4 ++-- .../entry/src/main/js/test/AccessibleAbilityList.test.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/barrierfree/accessibleabilitylist/entry/src/main/config.json b/barrierfree/accessibleabilitylist/entry/src/main/config.json index 15215e238..05ef02852 100644 --- a/barrierfree/accessibleabilitylist/entry/src/main/config.json +++ b/barrierfree/accessibleabilitylist/entry/src/main/config.json @@ -7,8 +7,8 @@ "name": "1.0" }, "apiVersion": { - "compatible": 4, - "target": 5, + "compatible": 8, + "target": 9, "releaseType": "Beta1" } }, diff --git a/barrierfree/accessibleabilitylist/entry/src/main/js/test/AccessibleAbilityList.test.js b/barrierfree/accessibleabilitylist/entry/src/main/js/test/AccessibleAbilityList.test.js index 95b1937ee..33fde3ed8 100644 --- a/barrierfree/accessibleabilitylist/entry/src/main/js/test/AccessibleAbilityList.test.js +++ b/barrierfree/accessibleabilitylist/entry/src/main/js/test/AccessibleAbilityList.test.js @@ -190,7 +190,7 @@ describe('AccessibleAbilityList', function () { accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { if (err.code != 0) { console.error(`AccessibleAbilityList: AbilityList_0270 has error: ${err.code}`); - expect(null).assertFail(); + expect(Array.isArray(data)).assertEqual(true); done(); } console.info(`AccessibleAbilityList: AbilityList_0270 result ${data.length}`); @@ -213,7 +213,7 @@ describe('AccessibleAbilityList', function () { accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { if (err.code != 0) { console.error(`AccessibleAbilityList: AbilityList_0280 has error: ${err.code}`); - expect(null).assertFail(); + expect(Array.isArray(data)).assertEqual(true); done(); } console.info(`AccessibleAbilityList: AbilityList_0280 result ${data.length}`); @@ -305,7 +305,7 @@ describe('AccessibleAbilityList', function () { accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { if (err.code != 0) { console.error(`AccessibleAbilityList: AbilityList_0320 has error: ${err.code}`); - expect(null).assertFail(); + expect(Array.isArray(data)).assertEqual(true); done(); } console.info(`AccessibleAbilityList: AbilityList_0320 result ${data.length}`); @@ -328,7 +328,7 @@ describe('AccessibleAbilityList', function () { accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { if (err.code != 0) { console.error(`AccessibleAbilityList: AbilityList_0330 has error: ${err.code}`); - expect(null).assertFail(); + expect(Array.isArray(data)).assertEqual(true); done(); } console.info(`AccessibleAbilityList: AbilityList_0330 result ${data.length}`); -- GitLab