fix(接口测试): 场景断言js脚本断言的脚本案例中失败原因的字符串格式化使用引号错误

This commit is contained in:
xinxin.wu 2024-08-14 12:38:02 +08:00 committed by 刘瑞斌
parent aa0f7f0a00
commit f1358a55de
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ vars.put("responseData", responseData);`,
'if (responseCode != expectedCode) {\n' +
' AssertionResult.setFailure(true);\n' +
// eslint-disable-next-line no-template-curly-in-string
' AssertionResult.setFailureMessage("Expected response code: ${expectedCode}, but got: ${responseCode}")\n' +
' AssertionResult.setFailureMessage(`Expected response code: ${expectedCode}, but got: ${responseCode}`)\n' +
'}\n',
scenario: `// 导入必要的 Java 类
var URL = java.net.URL;