Skip to content

Commit f83f731

Browse files
committed
Fix test on elixir 1.14
1 parent 07794aa commit f83f731

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/surface/api_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ defmodule Surface.APISyncTest do
843843
end
844844
"""
845845

846-
error_message = ~r"code.exs:7: cannot render <NonExisting> \(module NonExisting could not be loaded\)"
846+
error_message = ~r"code.exs:7(:8)?: cannot render <NonExisting> \(module NonExisting could not be loaded\)"
847847

848848
assert_raise(Surface.CompileError, error_message, fn ->
849849
{{:module, _, _, _}, _} =

test/surface/compiler_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ defmodule Surface.CompilerSyncTest do
10211021

10221022
assert_raise(
10231023
Surface.CompileError,
1024-
~r/nofile:2(:\d)?: cannot render <But> \(module But could not be loaded\)/,
1024+
~r/nofile:2(:4)?: cannot render <But> \(module But could not be loaded\)/,
10251025
fn ->
10261026
Surface.Compiler.compile(code, 1, __ENV__)
10271027
end

test/surface/macro_component_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ defmodule Surface.MacroComponentTest do
284284

285285
assert_raise(
286286
Surface.CompileError,
287-
~r/code:1: cannot render \<#NonExisting\> \(module NonExisting could not be loaded\)/,
287+
~r/code:1(:2)?: cannot render \<#NonExisting\> \(module NonExisting could not be loaded\)/,
288288
fn ->
289289
compile_surface(code)
290290
end

0 commit comments

Comments
 (0)