提交 bb3e1d08 编写于 作者: S SoftSquirrel

Issue:#I5OZGT

Description: add testcase : call get profile interface with invalid json format
Sig: SIG_ApplicaitonFramework
Feature or Bugfix: Feature
Binary Source: No
Signed-off-by: NSoftSquirrel <xuhao47@huawei.com>
上级 1934abbd
......@@ -441,7 +441,7 @@ export default function getProfileByAbility() {
*/
it('getProfileByAbility_2500', 0, async function (done) {
bundle.getProfileByAbility(MODULE_NAME, ABILITY_NAME, METADATA_NAME4, (err, data) => {
console.error('[getProfileByAbility_2500] Operation failed. Cause: ' + JSON.stringify(err));
console.info('[getProfileByAbility_2500] err: ' + JSON.stringify(err));
expect(err).assertEqual(1);
console.info('[getProfileByAbility_2500] data is: ' + JSON.stringify(data));
expect(typeof data).assertEqual("string");
......
......@@ -441,7 +441,7 @@ export default function getProfileByExtensionAbility() {
*/
it('getProfileByExtensionAbility_2500', 0, async function (done) {
bundle.getProfileByExtensionAbility(MODULE_NAME, ABILITY_NAME, METADATA_NAME4, (err, data) => {
console.error('[getProfileByExtensionAbility_2500] Operation failed. Cause: ' + JSON.stringify(err));
console.info('[getProfileByExtensionAbility_2500] err: ' + JSON.stringify(err));
expect(err).assertEqual(1);
console.info('[getProfileByExtensionAbility_2500] data is: ' + JSON.stringify(data));
expect(typeof data).assertEqual("string");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册