Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Sep 28, 2023
1 parent c195225 commit 402c641
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions apps/language_server/test/providers/completion_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ defmodule ElixirLS.LanguageServer.Providers.CompletionTest do
defstruct [some: nil, other: 1]
def dummy_function(var = %MyModule{}) do
%{var |
%{var | }
# ^
end
end
Expand All @@ -625,7 +625,7 @@ defmodule ElixirLS.LanguageServer.Providers.CompletionTest do
text = """
defmodule MyModule do
def dummy_function(var = %{some: nil, other: 1}) do
%{var |
%{var | }
# ^
end
end
Expand Down Expand Up @@ -1137,9 +1137,11 @@ defmodule ElixirLS.LanguageServer.Providers.CompletionTest do
The summary
```
@spec add(
a_big_name :: integer,
b_big_name :: integer
) :: integer
a_big_name ::
integer(),
b_big_name ::
integer()
) :: integer()
```
"""
}
Expand Down Expand Up @@ -1350,7 +1352,7 @@ defmodule ElixirLS.LanguageServer.Providers.CompletionTest do
text = """
defmodule MyModule do
def hello do
Date.today() |>
Date.today() |>
# ^
end
end
Expand Down
2 changes: 1 addition & 1 deletion apps/language_server/test/server_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ defmodule ElixirLS.LanguageServer.ServerTest do
Inspects `item` according to the given options using the IO `device`.
```
@spec inspect(device, item, keyword) ::
@spec inspect(device(), item, keyword()) ::
item
when item: var
```
Expand Down

0 comments on commit 402c641

Please sign in to comment.