Update generated IDs completion test

This commit is contained in:
Josh Gross
2022-12-06 17:46:09 -05:00
parent 1e033a2c00
commit ea8d6c8cfd
2 changed files with 22 additions and 23 deletions
@@ -262,7 +262,7 @@ jobs:
expect(result).toEqual([]);
});
describe("steps context", () => {
it("includes defined step IDs", async () => {
const input = `
@@ -317,23 +317,22 @@ jobs:
expect(result.map(x => x.label)).toEqual(["a"]);
});
});
// The workflow parser doesn't currently generate IDs, so we can't test this yet
it.failing("Ignores generated IDs", async () => {
const input = `
on: push
jobs:
one:
runs-on: ubuntu-latest
steps:
- run: echo hello a
- id: b
run: echo hello b
- run: echo "hello \${{ steps.|
`;
const result = await complete(...getPositionFromCursor(input), undefined, contextProviderConfig);
it("Ignores generated IDs", async () => {
const input = `
on: push
jobs:
one:
runs-on: ubuntu-latest
steps:
- run: echo hello a
- id: b
run: echo hello b
- run: echo "hello \${{ steps.|
`;
const result = await complete(...getPositionFromCursor(input), undefined, contextProviderConfig);
expect(result.map(x => x.label)).toEqual(["b"]);
expect(result.map(x => x.label)).toEqual(["b"]);
});
});
});