perf: template literals
This commit is contained in:
@@ -157,7 +157,7 @@ function getCodegenGeneralRESTInfo(
|
||||
params: request.effectiveFinalParams.map((x) => ({ ...x, active: true })),
|
||||
method: request.method,
|
||||
url: urlObj.origin,
|
||||
queryString: urlObj.searchParams.toString(),
|
||||
queryString: `${urlObj.searchParams}`,
|
||||
pathName: urlObj.pathname,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ export const PhpCurlCodegen = {
|
||||
} else {
|
||||
const requestObject = JSON.parse(requestBody)
|
||||
requestBody = `"${Object.keys(requestObject)
|
||||
.map((key) => `${key}=${requestObject[key].toString()}`)
|
||||
.map((key) => `${key}=${requestObject[key]}`)
|
||||
.join("&")}"`
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ export default function runTestScriptWithVariables(
|
||||
} catch (e: any) {
|
||||
pw._testReports.push({
|
||||
result: "ERROR",
|
||||
message: e.toString(),
|
||||
message: `${e}`,
|
||||
styles: styles.ERROR,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user