Validate completion in loose mappings

This commit is contained in:
Josh Gross
2022-11-28 12:52:06 -05:00
parent 25cf8b3fb5
commit fc6a52f320
@@ -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);
});
});