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
131
131
132
132
{ line , char } = { 0 , 19 }
133
133
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
141
146
end
142
147
143
148
test "variable" do
You can’t perform that action at this time.
0 commit comments