summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-05-19 15:53:18 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-05-19 16:26:06 +0400
commit524d04d9218f8e72bf88ab5e7d4b407452ae40bc (patch)
tree24383ed9943d9eaa26ed00ad06f8cf862ee2d931 /test/web/common_api/common_api_test.exs
parent7075fa92a5972f65efa59f9a9b4a3a16eea26727 (diff)
downloadpleroma-524d04d9218f8e72bf88ab5e7d4b407452ae40bc.tar.gz
pleroma-524d04d9218f8e72bf88ab5e7d4b407452ae40bc.zip
Add OpenAPI spec for PleromaAPI.ScrobbleController
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r--test/web/common_api/common_api_test.exs18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index fd8299013..52e95397c 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -841,10 +841,10 @@ defmodule Pleroma.Web.CommonAPITest do
{:ok, activity} =
CommonAPI.listen(user, %{
- "title" => "lain radio episode 1",
- "album" => "lain radio",
- "artist" => "lain",
- "length" => 180_000
+ title: "lain radio episode 1",
+ album: "lain radio",
+ artist: "lain",
+ length: 180_000
})
object = Object.normalize(activity)
@@ -859,11 +859,11 @@ defmodule Pleroma.Web.CommonAPITest do
{:ok, activity} =
CommonAPI.listen(user, %{
- "title" => "lain radio episode 1",
- "album" => "lain radio",
- "artist" => "lain",
- "length" => 180_000,
- "visibility" => "private"
+ title: "lain radio episode 1",
+ album: "lain radio",
+ artist: "lain",
+ length: 180_000,
+ visibility: "private"
})
object = Object.normalize(activity)