summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/marker_controller_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-11-15 22:10:41 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-11-15 22:46:58 +0300
commitb9041c209787dc279d4dc5194d65dff73684cdb9 (patch)
tree927fab2c4c2577da9c1cafb1c3d95efcdff302b5 /test/web/mastodon_api/controllers/marker_controller_test.exs
parentb5b62f42b2864dc8b95c8ba7d650321ebcc332ad (diff)
downloadpleroma-b9041c209787dc279d4dc5194d65dff73684cdb9.tar.gz
pleroma-b9041c209787dc279d4dc5194d65dff73684cdb9.zip
added recount unread notifications to markers
Diffstat (limited to 'test/web/mastodon_api/controllers/marker_controller_test.exs')
-rw-r--r--test/web/mastodon_api/controllers/marker_controller_test.exs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/mastodon_api/controllers/marker_controller_test.exs b/test/web/mastodon_api/controllers/marker_controller_test.exs
index 8bcfcb7e1..64bf79bb1 100644
--- a/test/web/mastodon_api/controllers/marker_controller_test.exs
+++ b/test/web/mastodon_api/controllers/marker_controller_test.exs
@@ -11,11 +11,12 @@ defmodule Pleroma.Web.MastodonAPI.MarkerControllerTest do
test "gets markers with correct scopes", %{conn: conn} do
user = insert(:user)
token = insert(:oauth_token, user: user, scopes: ["read:statuses"])
+ insert_list(7, :notification, user: user)
{:ok, %{"notifications" => marker}} =
Pleroma.Marker.upsert(
user,
- %{"notifications" => %{"last_read_id" => "69420", "unread_count" => 7}}
+ %{"notifications" => %{"last_read_id" => "69420"}}
)
response =