Skip to content

Commit

Permalink
Add test to check incorrect indent in suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jun 22, 2024
1 parent d5b39c2 commit cdd279b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 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 @@ -366,4 +366,18 @@ creator:

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

it("should not suggest any properties when the indent is not correct", async () => {
const template = `
class: GalaxyWorkflow
inputs:
My input:
$`; // Incorrect indent

const { contents, position } = parseTemplate(template);

const completions = await getCompletions(contents, position);

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

0 comments on commit cdd279b

Please sign in to comment.