chore: code formatting

This commit is contained in:
github-actions[bot]
2022-01-18 18:36:13 +00:00
parent 7445e2e771
commit 5282a42b9f

View File

@@ -158,7 +158,7 @@ async function template(id) {
function testcase(name, env, args) { function testcase(name, env, args) {
const { prod = {}, test = {}, ...step } = JSON.parse(JSON.stringify(args)) const { prod = {}, test = {}, ...step } = JSON.parse(JSON.stringify(args))
const context = { prod, test }[env] ?? {} const context = { prod, test }[env] ?? {}
const {with:overrides} = context const { with: overrides } = context
if (context.skip) if (context.skip)
return null return null
@@ -179,10 +179,9 @@ function testcase(name, env, args) {
if (!(property in result.with)) if (!(property in result.with))
result.with[property] = value result.with[property] = value
} }
if ((overrides?.output_action) && (overrides?.committer_branch === "examples")) { if ((overrides?.output_action) && (overrides?.committer_branch === "examples"))
Object.assign(result.with, { output_action: overrides.output_action, committer_branch: "examples" }) Object.assign(result.with, { output_action: overrides.output_action, committer_branch: "examples" })
} }
}
if (env === "test") { if (env === "test") {
if (!result.with.base) if (!result.with.base)