Skip to content

Commit 302fa25

Browse files
committed
fix: update error tests
1 parent f1fded3 commit 302fa25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/engine/test/engine/build/error_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ defmodule Engine.Build.ErrorTest do
451451

452452
# used a regex here because the error changed in elixir 1.18
453453
assert diagnostic.message =~
454-
~r[protocol Enumerable not implemented for( 1 of type)? Integer]
454+
~r[protocol Enumerable not implemented for( 1 of)?( type)? Integer]
455455

456456
assert decorate(document_text, diagnostic.position) =~ "«for i <- 1, do: i\n»"
457457
end
@@ -468,7 +468,7 @@ defmodule Engine.Build.ErrorTest do
468468

469469
# used a regex here because the error changed in elixir 1.18
470470
assert diagnostic.message =~
471-
~r[protocol Enumerable not implemented for( 1 of type)? Integer]
471+
~r[protocol Enumerable not implemented for( 1 of)?( type)? Integer]
472472

473473
assert decorate(document_text, diagnostic.position) =~ "«for i <- 1, do: i\n»"
474474
end

0 commit comments

Comments
 (0)