Skip to content

Commit

Permalink
update source code url tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jrowah committed Sep 17, 2024
1 parent daa0a47 commit 781bb75
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/phx_tools_web/live/index_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ defmodule PhxToolsWeb.PhxToolsLive.IndexTest do
landing_live,
"a[href='https://github.com/optimumBA/phx.tools/blob/main/priv/static/Linux.sh']"
)

refute has_element?(
landing_live,
"a[href='https://github.com/optimumBA/phx.tools/blob/main/priv/static/Unsupported%20OS.sh']"
)
end

test "has correct source code URL for macOS", %{conn: conn} do
Expand All @@ -80,6 +85,11 @@ defmodule PhxToolsWeb.PhxToolsLive.IndexTest do
landing_live,
"a[href='https://github.com/optimumBA/phx.tools/blob/main/priv/static/macOS.sh']"
)

refute has_element?(
landing_live,
"a[href='https://github.com/optimumBA/phx.tools/blob/main/priv/static/Unsupported%20OS.sh']"
)
end
end

Expand Down

0 comments on commit 781bb75

Please sign in to comment.