akkoma/test/pleroma/web/metadata/providers/theme_test.exs
floatingghost bc6bfe383f
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/release Pipeline failed
ci/woodpecker/push/test Pipeline failed
Add configurable theme color (#53)
Reviewed-on: #53
2022-07-06 20:00:43 +00:00

12 lines
390 B
Elixir

defmodule Pleroma.Web.Metadata.Providers.ThemeTest do
use Pleroma.DataCase
alias Pleroma.Web.Metadata.Providers.Theme
setup do: clear_config([Pleroma.Web.Metadata.Providers.Theme, :theme_color], "configured")
test "it renders the theme-color meta tag" do
result = Theme.build_tags(%{})
assert {:meta, [name: "theme-color", content: "configured"], []} in result
end
end