From 4f3be1f0ea77ac0380e326549e671f6f206b176f Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Sat, 22 Jun 2024 14:37:39 +0200 Subject: [PATCH] Add test coverage for suggestions of type Any --- .../tests/integration/completion.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 e1c8e81..36c520e 100644 --- a/server/gx-workflow-ls-format2/tests/integration/completion.test.ts +++ b/server/gx-workflow-ls-format2/tests/integration/completion.test.ts @@ -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); + }); });