Skip to content

Commit 51e2f15

Browse files
committed
Improve test case to avoid false positives
1 parent e592df2 commit 51e2f15

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/elixir_console_web/live/console_live_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ defmodule ElixirConsoleWeb.ConsoleLiveTest do
2020
end
2121

2222
test "command result is displayed", %{html: html} do
23-
assert html =~ ~r/<div.*id="output.".*3.*<\/div>/s
23+
assert html =~ ~r/<div[^>]*id="output.".*3.*<\/div>/s
2424
end
2525

2626
test "binding value is displayed in the Current Variables section", %{html: html} do
27-
assert html =~ ~r/<h2.*Current Bindings<\/h2><ul><li.*>a: <code.*3<\/code>/s
27+
assert html =~ ~r/<h2[^>]*>Current Bindings<\/h2><ul><li.*>a: <code.*3<\/code>/s
2828
end
2929
end
3030

0 commit comments

Comments
 (0)