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

!799 master分支修改部分mock调用失效问题

Merge pull request !799 from fupengfei/master
......@@ -57,7 +57,7 @@ export function generateIndex(): string {
}
if (value.fileName.startsWith('ohos_')) {
caseBody += `case '${value.fileName.split('ohos_')[1].replace('_', '.')}':\n\treturn ${functionName}();\n`;
caseBody += `case '${value.fileName.split('ohos_')[1].replace(/_/g, '.')}':\n\treturn ${functionName}();\n`;
} else {
caseBody += `case '${value.fileName}':\n\treturn ${functionName}();\n`;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册