Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
Some plugin or setting in my editor trimmed extra spaces from the lines
but in this case it cause a test to break by changing the cursor position
of the auto-completion trigger
  • Loading branch information
bottlenecked committed Apr 15, 2022
1 parent dd6c054 commit d3b624f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/language_server/test/providers/completion_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ defmodule ElixirLS.LanguageServer.Providers.CompletionTest do
text = """
defmodule MyModule do
def hello do
Date.today() |>
Date.today() |>
# ^
end
end
Expand All @@ -1042,8 +1042,6 @@ defmodule ElixirLS.LanguageServer.Providers.CompletionTest do

assert {:ok, %{"items" => items}} = Completion.completion(text, line, char, @supports)

IO.inspect(Enum.filter(items, fn i -> i["label"] == "make_ref/0" end))

refute Enum.any?(items, fn i -> i["label"] == "make_ref/0" end)
end
end
Expand Down

0 comments on commit d3b624f

Please sign in to comment.