提交 aebdea10 编写于 作者: H huangke11

modify js module name

Signed-off-by: Nhuangke11 <huangke11@huawei.com>
上级 27258a30
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
import cust from '@ohos.cust' import configPolicy from '@ohos.configPolicy'
describe('GetCfgDirListTest', function () { describe('GetCfgDirListTest', function () {
...@@ -25,7 +25,7 @@ describe('GetCfgDirListTest', function () { ...@@ -25,7 +25,7 @@ describe('GetCfgDirListTest', function () {
* @tc.desc get getCfgDirList in callback mode * @tc.desc get getCfgDirList in callback mode
*/ */
it('getCfgDirList_test_005', 0, async function (done) { it('getCfgDirList_test_005', 0, async function (done) {
cust.getCfgDirList((error, value) => { configPolicy.getCfgDirList((error, value) => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getCfgDirList_test_005:' + value); console.log('CustTest getCfgDirList_test_005:' + value);
}); });
...@@ -38,7 +38,7 @@ describe('GetCfgDirListTest', function () { ...@@ -38,7 +38,7 @@ describe('GetCfgDirListTest', function () {
* @tc.desc get getCfgDirList in promise mode * @tc.desc get getCfgDirList in promise mode
*/ */
it('getCfgDirList_test_006', 0, async function (done) { it('getCfgDirList_test_006', 0, async function (done) {
cust.getCfgDirList().then(value => { configPolicy.getCfgDirList().then(value => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getCfgDirList_test_006:' + value); console.log('CustTest getCfgDirList_test_006:' + value);
}); });
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
import cust from '@ohos.cust' import configPolicy from '@ohos.configPolicy'
describe('GetCfgFilesTest', function () { describe('GetCfgFilesTest', function () {
...@@ -25,19 +25,19 @@ describe('GetCfgFilesTest', function () { ...@@ -25,19 +25,19 @@ describe('GetCfgFilesTest', function () {
* @tc.desc get getCfgFiles in callback mode * @tc.desc get getCfgFiles in callback mode
*/ */
it('getCfgFiles_test_003', 0, async function (done) { it('getCfgFiles_test_003', 0, async function (done) {
cust.getCfgFiles('custxmltest/none.xml', (error, value) => { configPolicy.getCfgFiles('custxmltest/none.xml', (error, value) => {
expect(value.length == 0).assertTrue(); expect(value.length == 0).assertTrue();
console.log('CustTest getCfgFiles_test_003, none.xml:' + value); console.log('CustTest getCfgFiles_test_003, none.xml:' + value);
}); });
cust.getCfgFiles('custxmltest/system.xml', (error, value) => { configPolicy.getCfgFiles('custxmltest/system.xml', (error, value) => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getCfgFiles_test_003, system.xml:' + value); console.log('CustTest getCfgFiles_test_003, system.xml:' + value);
}); });
cust.getCfgFiles('custxmltest/both.xml', (error, value) => { configPolicy.getCfgFiles('custxmltest/both.xml', (error, value) => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getCfgFiles_test_003, both.xml:' + value); console.log('CustTest getCfgFiles_test_003, both.xml:' + value);
}); });
cust.getCfgFiles('custxmltest/user.xml', (error, value) => { configPolicy.getCfgFiles('custxmltest/user.xml', (error, value) => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getCfgFiles_test_003, user.xml:' + value); console.log('CustTest getCfgFiles_test_003, user.xml:' + value);
}); });
...@@ -50,19 +50,19 @@ describe('GetCfgFilesTest', function () { ...@@ -50,19 +50,19 @@ describe('GetCfgFilesTest', function () {
* @tc.desc get getCfgFiles in promise mode * @tc.desc get getCfgFiles in promise mode
*/ */
it('getCfgFiles_test_004', 0, async function (done) { it('getCfgFiles_test_004', 0, async function (done) {
cust.getCfgFiles('custxmltest/none.xml').then(value => { configPolicy.getCfgFiles('custxmltest/none.xml').then(value => {
expect(value.length == 0).assertTrue(); expect(value.length == 0).assertTrue();
console.log('CustTest getCfgFiles_test_004, none.xml:' + value); console.log('CustTest getCfgFiles_test_004, none.xml:' + value);
}); });
cust.getCfgFiles('custxmltest/system.xml').then(value => { configPolicy.getCfgFiles('custxmltest/system.xml').then(value => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getCfgFiles_test_004, system.xml:' + value); console.log('CustTest getCfgFiles_test_004, system.xml:' + value);
}); });
cust.getCfgFiles('custxmltest/both.xml').then(value => { configPolicy.getCfgFiles('custxmltest/both.xml').then(value => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getCfgFiles_test_004, both.xml:' + value); console.log('CustTest getCfgFiles_test_004, both.xml:' + value);
}); });
cust.getCfgFiles('custxmltest/user.xml').then(value => { configPolicy.getCfgFiles('custxmltest/user.xml').then(value => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getCfgFiles_test_004, user.xml:' + value); console.log('CustTest getCfgFiles_test_004, user.xml:' + value);
}); });
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
import cust from '@ohos.cust' import configPolicy from '@ohos.configPolicy'
describe('GetOneCfgFileTest', function () { describe('GetOneCfgFileTest', function () {
...@@ -25,19 +25,19 @@ describe('GetOneCfgFileTest', function () { ...@@ -25,19 +25,19 @@ describe('GetOneCfgFileTest', function () {
* @tc.desc get getOneCfgFile in callback mode * @tc.desc get getOneCfgFile in callback mode
*/ */
it('getOneCfgFile_test_001', 0, async function (done) { it('getOneCfgFile_test_001', 0, async function (done) {
cust.getOneCfgFile('custxmltest/none.xml', (error, value) => { configPolicy.getOneCfgFile('custxmltest/none.xml', (error, value) => {
expect(value.length == 0).assertTrue(); expect(value.length == 0).assertTrue();
console.log('CustTest getOneCfgFile_test_001, none.xml:' + value); console.log('CustTest getOneCfgFile_test_001, none.xml:' + value);
}); });
cust.getOneCfgFile('custxmltest/system.xml', (error, value) => { configPolicy.getOneCfgFile('custxmltest/system.xml', (error, value) => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getOneCfgFile_test_001, system.xml:' + value); console.log('CustTest getOneCfgFile_test_001, system.xml:' + value);
}); });
cust.getOneCfgFile('custxmltest/both.xml', (error, value) => { configPolicy.getOneCfgFile('custxmltest/both.xml', (error, value) => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getOneCfgFile_test_001, both.xml:' + value); console.log('CustTest getOneCfgFile_test_001, both.xml:' + value);
}); });
cust.getOneCfgFile('custxmltest/user.xml', (error, value) => { configPolicy.getOneCfgFile('custxmltest/user.xml', (error, value) => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getOneCfgFile_test_001, user.xml:' + value); console.log('CustTest getOneCfgFile_test_001, user.xml:' + value);
}); });
...@@ -50,19 +50,19 @@ describe('GetOneCfgFileTest', function () { ...@@ -50,19 +50,19 @@ describe('GetOneCfgFileTest', function () {
* @tc.desc get getOneCfgFile in promise mode * @tc.desc get getOneCfgFile in promise mode
*/ */
it('getOneCfgFile_test_002', 0, async function (done) { it('getOneCfgFile_test_002', 0, async function (done) {
cust.getOneCfgFile('custxmltest/none.xml').then(value => { configPolicy.getOneCfgFile('custxmltest/none.xml').then(value => {
expect(value.length == 0).assertTrue(); expect(value.length == 0).assertTrue();
console.log('CustTest getOneCfgFile_test_002, none.xml:' + value); console.log('CustTest getOneCfgFile_test_002, none.xml:' + value);
}); });
cust.getOneCfgFile('custxmltest/system.xml').then(value => { configPolicy.getOneCfgFile('custxmltest/system.xml').then(value => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getOneCfgFile_test_002, system.xml:' + value); console.log('CustTest getOneCfgFile_test_002, system.xml:' + value);
}); });
cust.getOneCfgFile('custxmltest/both.xml').then(value => { configPolicy.getOneCfgFile('custxmltest/both.xml').then(value => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getOneCfgFile_test_002, both.xml:' + value); console.log('CustTest getOneCfgFile_test_002, both.xml:' + value);
}); });
cust.getOneCfgFile('custxmltest/user.xml').then(value => { configPolicy.getOneCfgFile('custxmltest/user.xml').then(value => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('CustTest getOneCfgFile_test_002, user.xml:' + value); console.log('CustTest getOneCfgFile_test_002, user.xml:' + value);
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册