Skip to content

Commit 036159f

Browse files
committed
fix test on 1.13
1 parent fed32bf commit 036159f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/language_server/test/providers/execute_command/expand_macro_test.exs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.ExpandMacroTest do
132132
)
133133
"""
134134
else
135+
if Version.match?(System.version(), "< 1.14.0") do
136+
"Application\n\n(\n Application\n @doc false\n {:stop, 1}\n nil\n)"
137+
else
135138
"""
136139
(
137140
require Application
@@ -146,6 +149,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.ExpandMacroTest do
146149
147150
Module.make_overridable(MyModule, Application)
148151
"""
152+
end
149153
end)
150154
|> String.trim()
151155
end

0 commit comments

Comments
 (0)