Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NJichev committed Feb 17, 2024
1 parent 567c0f5 commit b4a1435
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/next_ls/diagnostics_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ defmodule NextLS.DiagnosticsTest do
"start" => %{"line" => 3, "character" => ^char},
"end" => %{"line" => 3, "character" => 14}
},
"data" => %{"type" => "unused"}
"data" => %{"type" => "unused_variable", "namespace" => "elixir"}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule NextLS.ElixirExtensionTest do
defmodule NextLS.ElixirExtension.UnusedVariableTest do
use ExUnit.Case, async: true

alias GenLSP.Structures.CodeAction
Expand Down
4 changes: 4 additions & 0 deletions test/next_ls/extensions/elixir_extension_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ defmodule NextLS.ElixirExtensionTest do
assert %{
with_iodata.file => [
%GenLSP.Structures.Diagnostic{
data: %{"namespace" => "elixir"},
severity: 2,
message:
"ElixirExtension.foo/0" <>
Expand All @@ -84,6 +85,7 @@ defmodule NextLS.ElixirExtensionTest do
],
only_line.file => [
%GenLSP.Structures.Diagnostic{
data: %{"namespace" => "elixir"},
severity: 2,
message: "kind of bad",
source: "Elixir",
Expand All @@ -101,6 +103,7 @@ defmodule NextLS.ElixirExtensionTest do
],
line_and_col.file => [
%GenLSP.Structures.Diagnostic{
data: %{"namespace" => "elixir"},
severity: 1,
message: "nothing works",
source: "Elixir",
Expand All @@ -118,6 +121,7 @@ defmodule NextLS.ElixirExtensionTest do
],
start_and_end.file => [
%GenLSP.Structures.Diagnostic{
data: %{"namespace" => "elixir"},
severity: 4,
message: "here's a hint",
source: "Elixir",
Expand Down

0 comments on commit b4a1435

Please sign in to comment.