Merge pull request #16 from github/joshmgross/validate-loose-mapping-completion

Validate completion in loose mappings
This commit is contained in:
Josh Gross
2022-11-28 13:18:38 -05:00
committed by GitHub
@@ -263,4 +263,18 @@ jobs:
const result = await complete(...getPositionFromCursor(input));
expect(result).toHaveLength(0);
});
it("loose mapping keys have no completion suggestions", async () => {
const input = `
on:
workflow_dispatch:
inputs:
name:
type: string
description: "hello"
|
`;
const result = await complete(...getPositionFromCursor(input));
expect(result).toHaveLength(0);
});
});