Fix context descriptions in hover tests

This commit is contained in:
Josh Gross
2023-03-10 10:55:44 -05:00
parent d9de07bfe3
commit bc997ffdbc
@@ -21,7 +21,7 @@ jobs:
const result = await hover(...getPositionFromCursor(input), testHoverConfig("username", "scalar-needs-context"));
expect(result).not.toBeUndefined();
expect(result?.contents).toEqual(
"A username passed from the caller workflow\n\n**Context:** github, inputs, vars, needs, strategy, matrix"
"A username passed from the caller workflow\n\nAvailable expression contexts: `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`"
);
});
@@ -37,7 +37,9 @@ jobs:
`;
const result = await hover(...getPositionFromCursor(input));
expect(result).not.toBeUndefined();
expect(result?.contents).toEqual("**Context:** github, inputs, vars, needs, strategy, matrix");
expect(result?.contents).toEqual(
"Available expression contexts: `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`"
);
});
it("hover on job output with description", async () => {