Skip to content

Commit

Permalink
fix tests after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Jan 4, 2021
1 parent abe11f9 commit 1a7b2e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/language_server/test/providers/code_lens/test_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -298,26 +298,26 @@ defmodule ElixirLS.LanguageServer.Providers.CodeLens.TestTest do
end

test "returns module lens on the module declaration line", %{text: text} do
uri = "file://project/file.ex"
uri = "file:///project/file.ex"

{:ok, lenses} = CodeLens.Test.code_lens(uri, text)

assert Enum.member?(
lenses,
build_code_lens(0, :module, "/file.ex", %{
build_code_lens(0, :module, maybe_convert_path_separators("/project/file.ex"), %{
"module" => ElixirLS.LanguageServer.DiagnosticsTest
})
)
end

test "returns test lenses with describe info", %{text: text} do
uri = "file://project/file.ex"
uri = "file:///project/file.ex"

{:ok, lenses} = CodeLens.Test.code_lens(uri, text)

assert Enum.member?(
lenses,
build_code_lens(5, :test, "/file.ex", %{
build_code_lens(5, :test, maybe_convert_path_separators("/project/file.ex"), %{
"testName" => "extract the stacktrace from the message and format it",
"describe" => "normalize/2"
})
Expand Down

0 comments on commit 1a7b2e5

Please sign in to comment.