summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-11-15 18:58:13 +0100
committerRoger Braun <roger@rogerbraun.net>2017-11-15 18:58:39 +0100
commitced0d64d75831c68851d4deef9875343d9114eaa (patch)
treeba18c39916372c7aab56a11276d9bf529ff69d43 /test
parent1cca544e206e8e7f38077fba6392c252803c13ec (diff)
downloadpleroma-ced0d64d75831c68851d4deef9875343d9114eaa.tar.gz
pleroma-ced0d64d75831c68851d4deef9875343d9114eaa.zip
MastoAPI: Make attachment ids strings.
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/status_view_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
index 601e551a9..93c0b7236 100644
--- a/test/web/mastodon_api/status_view_test.exs
+++ b/test/web/mastodon_api/status_view_test.exs
@@ -78,7 +78,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
}
expected = %{
- id: 1638338801,
+ id: "1638338801",
type: "image",
url: "someurl",
remote_url: "someurl",
@@ -90,7 +90,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
# If theres a "id", use that instead of the generated one
object = Map.put(object, "id", 2)
- assert %{id: 2} = StatusView.render("attachment.json", %{attachment: object})
+ assert %{id: "2"} = StatusView.render("attachment.json", %{attachment: object})
end
test "a reblog" do