提交 4391c008 编写于 作者: C chengxingzhen

releaseForm传入不存在的formId返回error为0

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 fb8b6599
...@@ -801,7 +801,7 @@ describe('ActsFormFuzzStringTest', function () { ...@@ -801,7 +801,7 @@ describe('ActsFormFuzzStringTest', function () {
console.log("FMS_fuzzTestString_0300_param_10_callback async::error err:" + err); console.log("FMS_fuzzTestString_0300_param_10_callback async::error err:" + err);
if (Number.parseInt(formId) < 0) { if (Number.parseInt(formId) < 0) {
expect(err).assertEqual(0); expect(err).assertEqual(0);
} else expect(err).assertEqual(1); } else expect(err).assertEqual(0);
done(); done();
} }
); );
...@@ -828,7 +828,7 @@ describe('ActsFormFuzzStringTest', function () { ...@@ -828,7 +828,7 @@ describe('ActsFormFuzzStringTest', function () {
console.log("FMS_fuzzTestString_0300_param_10_promise async::sucess err:" + err); console.log("FMS_fuzzTestString_0300_param_10_promise async::sucess err:" + err);
if (Number.parseInt(formId) < 0) { if (Number.parseInt(formId) < 0) {
expect(err).assertEqual(0); expect(err).assertEqual(0);
} else expect(err).assertEqual(1); } else expect(err).assertEqual(0);
console.log("FMS_fuzzTestString_0300_param_10_promise deleteForm end"); console.log("FMS_fuzzTestString_0300_param_10_promise deleteForm end");
done(); done();
}); });
...@@ -898,7 +898,7 @@ describe('ActsFormFuzzStringTest', function () { ...@@ -898,7 +898,7 @@ describe('ActsFormFuzzStringTest', function () {
if (Number.parseInt(formId) < 0) { if (Number.parseInt(formId) < 0) {
expect(err).assertEqual(0); expect(err).assertEqual(0);
} else { } else {
expect(err).assertEqual(1); expect(err).assertEqual(0);
} }
done(); done();
} }
...@@ -930,7 +930,7 @@ describe('ActsFormFuzzStringTest', function () { ...@@ -930,7 +930,7 @@ describe('ActsFormFuzzStringTest', function () {
console.log("FMS_fuzzTestString_0300_param_11_promise async::sucess err:" + err); console.log("FMS_fuzzTestString_0300_param_11_promise async::sucess err:" + err);
if (Number.parseInt(formId) < 0) { if (Number.parseInt(formId) < 0) {
expect(err).assertEqual(0); expect(err).assertEqual(0);
} else expect(err).assertEqual(1); } else expect(err).assertEqual(0);
console.log("FMS_fuzzTestString_0300_param_11_promise deleteForm end"); console.log("FMS_fuzzTestString_0300_param_11_promise deleteForm end");
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册