logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma

status_net_test.exs (487B)


      1 # Pleroma: A lightweight social networking server
      2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
      3 # SPDX-License-Identifier: AGPL-3.0-only
      4 
      5 defmodule Pleroma.Web.Preload.Providers.StatusNetTest do
      6   use Pleroma.DataCase
      7   alias Pleroma.Web.Preload.Providers.StatusNet
      8 
      9   setup do: {:ok, StatusNet.generate_terms(nil)}
     10 
     11   test "it renders the info", %{"/api/statusnet/config.json" => info} do
     12     assert {:ok, res} = Jason.decode(info)
     13     assert res["site"]
     14   end
     15 end