Skip to content

Commit

Permalink
Add test coverage for suggestions of type Any
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jun 22, 2024
1 parent 4f69902 commit 4f3be1f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions server/gx-workflow-ls-format2/tests/integration/completion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,16 @@ report:
const completionLabels = getCompletionItemsLabels(completions);
expect(completionLabels).toEqual(EXPECTED_COMPLETION_LABELS);
});

it("should not suggest properties when the type of the property is 'Any'", async () => {
const template = `
class: GalaxyWorkflow
creator:
$`;
const { contents, position } = parseTemplate(template);

const completions = await getCompletions(contents, position);

expect(completions?.items).toHaveLength(0);
});
});

0 comments on commit 4f3be1f

Please sign in to comment.