Merge branch 'main' into cschleiden/find-token-tests

This commit is contained in:
Josh Gross
2022-11-23 14:20:44 -05:00
10 changed files with 102 additions and 38 deletions
@@ -12,6 +12,21 @@ describe("completion", () => {
expect(result[0].label).toEqual("macos-10.13");
});
it("needs", async () => {
const input = `on: push
jobs:
build:
runs-on: ubuntu-latest
build2:
runs-on: ubuntu-latest
needs: bu|`;
const result = await complete(...getPositionFromCursor(input));
expect(result).not.toBeUndefined();
expect(result.length).toEqual(1);
expect(result[0].label).toEqual("build");
});
it("empty workflow", async () => {
const input = "|";
const result = await complete(...getPositionFromCursor(input));