Skip to content

Commit 830be21

Browse files
committed
fix tests
1 parent 3545a6f commit 830be21

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

apps/language_server/test/diagnostics_test.exs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
2121

2222
[diagnostic | _] =
2323
[build_diagnostic(message, file, position)]
24-
|> Diagnostics.normalize(root_path)
24+
|> Diagnostics.normalize(root_path, Path.join(root_path, "mix.exs"))
2525

2626
assert diagnostic.message == """
2727
(CompileError) some message
@@ -49,7 +49,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
4949

5050
[diagnostic | _] =
5151
[build_diagnostic(message, file, position)]
52-
|> Diagnostics.normalize(root_path)
52+
|> Diagnostics.normalize(root_path, Path.join(root_path, "mix.exs"))
5353

5454
assert diagnostic.message == """
5555
(CompileError) some message
@@ -73,7 +73,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
7373

7474
[diagnostic | _] =
7575
[build_diagnostic(message, file, position)]
76-
|> Diagnostics.normalize(root_path)
76+
|> Diagnostics.normalize(root_path, Path.join(root_path, "mix.exs"))
7777

7878
assert diagnostic.message == """
7979
(CompileError) some message
@@ -98,7 +98,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
9898

9999
[diagnostic | _] =
100100
[build_diagnostic(message, file, position)]
101-
|> Diagnostics.normalize(root_path)
101+
|> Diagnostics.normalize(root_path, Path.join(root_path, "mix.exs"))
102102

103103
assert diagnostic.message =~ "(CompileError) some message"
104104
assert diagnostic.file =~ "umbrella/apps/app2/lib/app2.ex"
@@ -117,7 +117,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
117117

118118
[diagnostic | _] =
119119
[build_diagnostic(message, file, position)]
120-
|> Diagnostics.normalize(root_path)
120+
|> Diagnostics.normalize(root_path, Path.join(root_path, "mix.exs"))
121121

122122
assert diagnostic.message == """
123123
(CompileError) lib/non_existing.ex:3: some message
@@ -152,7 +152,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
152152

153153
[diagnostic | _] =
154154
[build_diagnostic(message, file, position)]
155-
|> Diagnostics.normalize(root_path)
155+
|> Diagnostics.normalize(root_path, Path.join(root_path, "mix.exs"))
156156

157157
assert diagnostic.position == 13
158158
end
@@ -172,7 +172,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
172172

173173
[diagnostic | _] =
174174
[build_diagnostic(message, file, position)]
175-
|> Diagnostics.normalize(root_path)
175+
|> Diagnostics.normalize(root_path, Path.join(root_path, "mix.exs"))
176176

177177
assert diagnostic.position == 6
178178
end

0 commit comments

Comments
 (0)