From 14caa586251316fc0f51f157d09d1f28f2a9a81c Mon Sep 17 00:00:00 2001 From: Kamaro Date: Tue, 9 Jul 2024 15:46:49 +0300 Subject: [PATCH] Added pagination component tests --- test/salad_ui/pagination_test.exs | 132 ++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 test/salad_ui/pagination_test.exs diff --git a/test/salad_ui/pagination_test.exs b/test/salad_ui/pagination_test.exs new file mode 100644 index 0000000..99ee3a4 --- /dev/null +++ b/test/salad_ui/pagination_test.exs @@ -0,0 +1,132 @@ +defmodule SaladUi.PaginationTest do + use ComponentCase + + import SaladUI.Pagination + + describe "Test Pagination:" do + test "It renders pagination_content correctly" do + assigns = %{} + + html = + ~H""" + <.pagination_content>Content goes here + """ + |> rendered_to_string() + |> clean_string() + + assert html =~ "