Test for step key

This commit is contained in:
Christopher Schleiden
2022-11-23 08:11:59 -08:00
parent 2843bdc2d8
commit 28c2cd42a1
@@ -235,4 +235,16 @@ jobs:
expect(result).not.toBeUndefined();
expect(result).toHaveLength(19);
});
it("step key without space after colon", async () => {
const input = `on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- env:|
run: echo`;
const result = await complete(...getPositionFromCursor(input));
expect(result).toHaveLength(0);
});
});