diff --git a/global/cust/custjs/Test.json b/global/cust/custjs/Test.json index c52a891339dbe89922e98de56dbfaf90cd451c0d..05512e3fd5689a026c97c7ba96b7e4c07d89c31c 100755 --- a/global/cust/custjs/Test.json +++ b/global/cust/custjs/Test.json @@ -13,14 +13,17 @@ ], "type": "AppInstallKit", "cleanup-apps": true + }, + { + "type": "ShellKit", + "run-command": [ + "mkdir -p /system/etc/custxml/", + "mkdir -p /sys-prod/etc/custxml/", + "touch /system/etc/custxml/system.xml", + "touch /system/etc/custxml/both.xml", + "touch /sys-prod/etc/custxml/both.xml", + "touch /sys-prod/etc/custxml/user.xml" + ] } - "run-command": [ - "mkdir -p /system/etc/custxml/", - "mkdir -p /sys-prod/etc/custxml/", - "touch /system/etc/custxml/system.xml", - "touch /system/etc/custxml/both.xml", - "touch /sys-prod/etc/custxml/both.xml", - "touch /sys-prod/etc/custxml/user.xml" - ] ] } diff --git a/global/cust/custjs/src/main/js/default/test/Cust.test.js b/global/cust/custjs/src/main/js/default/test/Cust.test.js index 3dff34d5cada7fd99842fdb1c509391c70f6b41e..26a726ca5a133b1c87c1a8225c29c7378417f571 100755 --- a/global/cust/custjs/src/main/js/default/test/Cust.test.js +++ b/global/cust/custjs/src/main/js/default/test/Cust.test.js @@ -12,8 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import cust from '@ohos.cust' + import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' +import cust from '@ohos.cust' describe('CustTest', function () { console.log('CustTest**************************start'); @@ -145,4 +146,4 @@ describe('CustTest', function () { }) console.log('CustTest**************************end'); -}) \ No newline at end of file +})