Improve hover context description

This commit is contained in:
Josh Gross
2023-03-09 17:10:23 -05:00
parent 7b3116801d
commit a2d5300578
2 changed files with 12 additions and 7 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" +
"**Context:** 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 =
"**Context:** 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" +
"**Context:** 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);
});