未验证 提交 d956462c 编写于 作者: O openharmony_ci 提交者: Gitee

!5593 【FA接口优化】Napi改造form部分接口 xts适配

Merge pull request !5593 from xinking129/master
......@@ -1564,7 +1564,7 @@ export default function test() {
function onCastCallBack(_, data) {
console.info("!!!====>FMS_acquireForm_2600 onCastCallBack data:====>" + JSON.stringify(data));
expect(data.event).assertEqual("FMS_FormCast_commonEvent");
expect(data.data).assertEqual("undefined");
expect(data.data).assertEqual("0");
commonEvent.unsubscribe(subscriberCast, () => unsubscribeOnCastCallback("FMS_acquireForm_2600"))
formId1 = data.parameters.formId;
console.info("!!!====>FMS_acquireForm_2600 formId1 " + formId1 + " formId2 " + formId2);
......
......@@ -61,7 +61,6 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
tempDataB = dataB[0];
tempDataC = dataC[0];
expect(error.code).assertEqual(ERR_OK_CODE);
expect(error.message).assertEqual(ERR_OK);
});
await sleep(2000)
checkDataB(tempDataB)
......
......@@ -178,7 +178,6 @@ export const getFormsInfoTest = (describeName, filterParameter) => {
expect(dataB.length).assertEqual(1);
tempDataB = dataB[0]
expect(error.code).assertEqual(ERR_OK_CODE);
expect(error.message).assertEqual(ERR_OK);
console.log(`==========${callbackName2} ${describeName} end==========`);
});
await sleep(2000)
......@@ -400,7 +399,6 @@ export const getFormsInfoTest = (describeName, filterParameter) => {
console.log(`${callbackName6} getFormsInfo data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
expect(JSON.stringify(data)).assertEqual(`[]`);
expect(error.code).assertEqual(ERR_OK_CODE);
expect(error.message).assertEqual(ERR_OK);
done();
console.log(`==========${callbackName6} ${describeName} end==========`);
});
......@@ -456,7 +454,6 @@ export const getFormsInfoTest = (describeName, filterParameter) => {
expect(data.length).assertEqual(1);
expect(dataC.length).assertEqual(1);
expect(error.code).assertEqual(ERR_OK_CODE);
expect(error.message).assertEqual(ERR_OK);
console.log(`==========${callbackName7} ${describeName} end==========`);
});
await sleep(2000)
......
......@@ -62,7 +62,6 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
tempDataA2 = dataA[1]
tempDataB = dataB[0]
expect(error.code).assertEqual(ERR_OK_CODE);
expect(error.message).assertEqual(ERR_OK);
console.log(`==========${callbackName} ${describeName} end==========`);
});
await sleep(2000)
......
......@@ -58,7 +58,6 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
tempDataB = dataB[0]
expect(JSON.stringify(dataD)).assertEqual(`[]`);
expect(error.code).assertEqual(ERR_OK_CODE);
expect(error.message).assertEqual(ERR_OK);
console.log(`==========${callbackName} ${describeName} end==========`);
});
await sleep(2000)
......
......@@ -37,7 +37,6 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
console.log(`${callbackName} getAllFormsInfo data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
expect(JSON.stringify(data)).assertEqual(`[]`);
expect(error.code).assertEqual(ERR_OK_CODE);
expect(error.message).assertEqual(ERR_OK);
done();
console.log(`==========${callbackName} ${describeName} end==========`);
});
......
......@@ -44,7 +44,6 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect(dataD.length).assertEqual(0);
expect(JSON.stringify(dataD)).assertEqual(`[]`);
expect(error.code).assertEqual(ERR_OK_CODE);
expect(error.message).assertEqual(ERR_OK);
done();
console.log(`==========${callbackName} ${describeName} end==========`);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册