# Pleroma: A lightweight social networking server # Copyright © 2017-2023 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Web.Metadata.PlayerViewTest do use Pleroma.DataCase, async: true alias Pleroma.Web.Metadata.PlayerView test "it renders audio tag" do res = PlayerView.render( "player.html", %{"mediaType" => "audio", "href" => "test-href"} ) |> Phoenix.HTML.safe_to_string() assert res == "" end test "it renders videos tag" do res = PlayerView.render( "player.html", %{"mediaType" => "video", "href" => "test-href"} ) |> Phoenix.HTML.safe_to_string() assert res == "" end end