encode data properly
This commit is contained in:
parent
29ae5bb771
commit
dbcc1b105e
5 changed files with 54 additions and 44 deletions
|
|
@ -52,9 +52,9 @@ defmodule Pleroma.Web.Preload.Providers.TimelineTest do
|
|||
end
|
||||
|
||||
test "returns public items", %{user: user} do
|
||||
{:ok, _} = CommonAPI.post(user, %{"status" => "it's post 1!"})
|
||||
{:ok, _} = CommonAPI.post(user, %{"status" => "it's post 2!"})
|
||||
{:ok, _} = CommonAPI.post(user, %{"status" => "it's post 3!"})
|
||||
{:ok, _} = CommonAPI.post(user, %{status: "it's post 1!"})
|
||||
{:ok, _} = CommonAPI.post(user, %{status: "it's post 2!"})
|
||||
{:ok, _} = CommonAPI.post(user, %{status: "it's post 3!"})
|
||||
|
||||
assert Timelines.generate_terms(%{})
|
||||
|> Map.fetch!(@public_url)
|
||||
|
|
@ -62,9 +62,9 @@ defmodule Pleroma.Web.Preload.Providers.TimelineTest do
|
|||
end
|
||||
|
||||
test "does not return non-public items", %{user: user} do
|
||||
{:ok, _} = CommonAPI.post(user, %{"status" => "it's post 1!", "visibility" => "unlisted"})
|
||||
{:ok, _} = CommonAPI.post(user, %{"status" => "it's post 2!", "visibility" => "direct"})
|
||||
{:ok, _} = CommonAPI.post(user, %{"status" => "it's post 3!"})
|
||||
{:ok, _} = CommonAPI.post(user, %{status: "it's post 1!", visibility: "unlisted"})
|
||||
{:ok, _} = CommonAPI.post(user, %{status: "it's post 2!", visibility: "direct"})
|
||||
{:ok, _} = CommonAPI.post(user, %{status: "it's post 3!"})
|
||||
|
||||
assert Timelines.generate_terms(%{})
|
||||
|> Map.fetch!(@public_url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue