Remove bolded context text

This commit is contained in:
Josh Gross
2023-03-10 10:39:59 -05:00
parent a2d5300578
commit d9de07bfe3
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -57,7 +57,7 @@ jobs:
expect(result).not.toBeUndefined();
expect(result?.contents).toEqual(
"Prevents a workflow run from failing when a job fails. Set to true to allow a workflow run to pass when this job fails.\n\n" +
"**Available expression contexts:** `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`"
"Available expression contexts: `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`"
);
});
@@ -154,7 +154,7 @@ jobs:
// The `ref` is a `string` definition and inherits the context from `step-with`
const expected =
"**Available expression contexts:** `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`";
"Available expression contexts: `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`";
expect(result?.contents).toEqual(expected);
});
});
@@ -180,7 +180,7 @@ jobs:
const expected =
"The branch, tag or SHA to checkout.\n\n" +
"**Available expression contexts:** `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`";
"Available expression contexts: `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`";
expect(result?.contents).toEqual(expected);
});
+1 -1
View File
@@ -113,7 +113,7 @@ function appendContext(description: string, allowedContext?: string[]) {
return description;
}
const contextDescription = `**Available expression contexts:** ${allowedContext.map(c => `\`${c}\``).join(", ")}`;
const contextDescription = `Available expression contexts: ${allowedContext.map(c => `\`${c}\``).join(", ")}`;
if (description.length == 0) {
return contextDescription;
}