File tree Expand file tree Collapse file tree 3 files changed +16
-14
lines changed
apps/language_server/test Expand file tree Collapse file tree 3 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -294,19 +294,21 @@ defmodule ElixirLS.LanguageServer.MarkdownUtilsTest do
294
294
) == "[Up and running](http://example.com/foo.md)"
295
295
end
296
296
297
- test "erlang extra page" do
298
- assert MarkdownUtils . transform_ex_doc_links (
299
- "[Up and running](e:erts_alloc.md)" ,
300
- :erlang
301
- ) == "[Up and running](https://www.erlang.org/doc/apps/erts/erts_alloc.html)"
302
- end
297
+ if System . otp_release ( ) |> String . to_integer ( ) >= 27 do
298
+ test "erlang extra page" do
299
+ assert MarkdownUtils . transform_ex_doc_links (
300
+ "[Up and running](e:erts_alloc.md)" ,
301
+ :erlang
302
+ ) == "[Up and running](https://www.erlang.org/doc/apps/erts/erts_alloc.html)"
303
+ end
303
304
304
- test "erlang extra page with app" do
305
- assert MarkdownUtils . transform_ex_doc_links (
306
- "[Up and running](e:system:expressions.md#term-comparisons)" ,
307
- :lists
308
- ) ==
309
- "[Up and running](https://www.erlang.org/doc/system/expressions.html#term-comparisons)"
305
+ test "erlang extra page with app" do
306
+ assert MarkdownUtils . transform_ex_doc_links (
307
+ "[Up and running](e:system:expressions.md#term-comparisons)" ,
308
+ :lists
309
+ ) ==
310
+ "[Up and running](https://www.erlang.org/doc/system/expressions.html#term-comparisons)"
311
+ end
310
312
end
311
313
312
314
test "expression" do
Original file line number Diff line number Diff line change @@ -4243,7 +4243,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion.SuggestionTest do
4243
4243
if System . otp_release ( ) |> String . to_integer ( ) >= 27 do
4244
4244
assert "The time unit used" <> _ = summary
4245
4245
else
4246
- assert "Supported time unit representations:" <> _ = summary
4246
+ assert summary =~ "Supported time unit representations:"
4247
4247
end
4248
4248
end
4249
4249
end
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ defmodule ElixirLS.LanguageServer.Providers.SignatureHelp.SignatureTest do
247
247
if System . otp_release ( ) |> String . to_integer ( ) >= 27 do
248
248
assert "The time unit" <> _ = summary
249
249
else
250
- assert "Supported time unit representations" <> _ = summary
250
+ assert summary =~ "Supported time unit representations"
251
251
end
252
252
end
253
253
end
You can’t perform that action at this time.
0 commit comments