diff --git a/server/gx-workflow-ls-format2/tests/integration/completion.test.ts b/server/gx-workflow-ls-format2/tests/integration/completion.test.ts index 36c520e..d5b7f16 100644 --- a/server/gx-workflow-ls-format2/tests/integration/completion.test.ts +++ b/server/gx-workflow-ls-format2/tests/integration/completion.test.ts @@ -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); + }); });