towerops/test/towerops_web/live/components/status_title_component_test.exs
Graham McIntire b96b1fabcb chore: add jump_credo_checks ~> 0.4 with all 19 checks enabled
All checks set to exit_status: 0 initially to avoid blocking on
pre-existing violations. Remove exit_status overrides as each
check category is cleaned up incrementally.
2026-06-12 13:44:31 -05:00

28 lines
720 B
Elixir

defmodule ToweropsWeb.Live.Components.StatusTitleComponentTest do
use ExUnit.Case, async: true
import Phoenix.Component
import Phoenix.LiveViewTest
alias ToweropsWeb.Live.Components.StatusTitleComponent
describe "render/1" do
test "renders the status title watcher div" do
assigns = %{id: "status-title-watcher"}
html =
render_component(
fn inner_assigns ->
~H"""
<.live_component module={StatusTitleComponent} id={@id} />
"""
end,
assigns
)
assert html =~ ~s(id="status-title-watcher")
assert html =~ ~s(phx-hook="StatusTitle")
assert html =~ ~s(style="display: none;")
end
end
end