Skip to content

Commit

Permalink
test: add history
Browse files Browse the repository at this point in the history
  • Loading branch information
trueChazza committed Aug 1, 2023
1 parent d960565 commit 2eb031e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/media_server_web/live/history_live_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
defmodule MediaServerWeb.HistoryLiveTest do
use MediaServerWeb.ConnCase

import Phoenix.LiveViewTest

alias MediaServer.AccountsFixtures

setup %{conn: conn} do
%{conn: conn |> log_in_user(AccountsFixtures.user_fixture())}
end

test "it should render", %{conn: conn} do
{:ok, view, _disconnected_html} = live(conn, ~p"/history")

assert render(view) =~ "History"
end
end

0 comments on commit 2eb031e

Please sign in to comment.