Merge branch 'develop' into issue/1276
[akkoma] / test / web / mastodon_api / controllers / marker_controller_test.exs
index 8bcfcb7e1303f3ef205906314a187477e7a8cd7b..64bf79bb1e482508e97cf374b7bcfaac8316da68 100644 (file)
@@ -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 =