diff options
author | stwf <steven.fuchs@dockyard.com> | 2020-06-02 10:18:06 -0400 |
---|---|---|
committer | stwf <steven.fuchs@dockyard.com> | 2020-06-02 10:18:06 -0400 |
commit | f73b2063f484e83c0972527c00c42d4fbdd11a0c (patch) | |
tree | 98bfdba4472b3e216ebb77b51a4a0ba4847b8bc1 /test/web/preload | |
parent | d67b302810c53d92ace7c347c77eecc10be6bcd6 (diff) | |
download | pleroma-f73b2063f484e83c0972527c00c42d4fbdd11a0c.tar.gz pleroma-f73b2063f484e83c0972527c00c42d4fbdd11a0c.zip |
encode data properly
Diffstat (limited to 'test/web/preload')
-rw-r--r-- | test/web/preload/timeline_test.exs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/web/preload/timeline_test.exs b/test/web/preload/timeline_test.exs index 00b10d0ab..da6a3aded 100644 --- a/test/web/preload/timeline_test.exs +++ b/test/web/preload/timeline_test.exs @@ -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) |