File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
apps/language_server/test/providers Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -131,13 +131,18 @@ defmodule ElixirLS.LanguageServer.Providers.HoverTest do
131131
132132 { line , char } = { 0 , 19 }
133133
134- assert { :ok , % { "contents" => % { kind: "markdown" , value: v } } } =
135- Hover . hover ( text , line , char , fake_dir ( ) )
136-
137- assert String . starts_with? (
138- v ,
139- "```elixir\n do\n ```\n \n *reserved word*"
140- )
134+ if Version . match? ( System . version ( ) , ">= 1.14.0" ) do
135+ assert { :ok , % { "contents" => % { kind: "markdown" , value: v } } } =
136+ Hover . hover ( text , line , char , fake_dir ( ) )
137+
138+ assert String . starts_with? (
139+ v ,
140+ "```elixir\n do\n ```\n \n *reserved word*"
141+ )
142+ else
143+ assert { :ok , nil } =
144+ Hover . hover ( text , line , char , fake_dir ( ) )
145+ end
141146 end
142147
143148 test "variable" do
You can’t perform that action at this time.
0 commit comments