1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.Metadata.Providers.FeedTest do
6 use Pleroma.DataCase, async: true
8 alias Pleroma.Web.Metadata.Providers.Feed
10 test "it renders a link to user's atom feed" do
11 user = insert(:user, nickname: "lain")
13 assert Feed.build_tags(%{user: user}) == [
15 [rel: "alternate", type: "application/atom+xml", href: "/users/lain/feed.atom"], []}