|
|
|
@ -26,13 +26,13 @@ defmodule Pleroma.Web.MastodonAPI.MarkerControllerTest do
|
|
|
|
|
|> json_response(200)
|
|
|
|
|
|
|
|
|
|
assert response == %{
|
|
|
|
|
"notifications" => %{
|
|
|
|
|
"last_read_id" => "69420",
|
|
|
|
|
"unread_count" => 7,
|
|
|
|
|
"updated_at" => NaiveDateTime.to_iso8601(marker.updated_at),
|
|
|
|
|
"version" => 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
"notifications" => %{
|
|
|
|
|
"last_read_id" => "69420",
|
|
|
|
|
"updated_at" => NaiveDateTime.to_iso8601(marker.updated_at),
|
|
|
|
|
"version" => 0,
|
|
|
|
|
"pleroma" => %{ "unread_count" => 7 }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test "gets markers with missed scopes", %{conn: conn} do
|
|
|
|
@ -72,7 +72,7 @@ defmodule Pleroma.Web.MastodonAPI.MarkerControllerTest do
|
|
|
|
|
"last_read_id" => "69420",
|
|
|
|
|
"updated_at" => _,
|
|
|
|
|
"version" => 0,
|
|
|
|
|
"unread_count" => 0
|
|
|
|
|
"pleroma" => %{ "unread_count" => 0 }
|
|
|
|
|
}
|
|
|
|
|
} = response
|
|
|
|
|
end
|
|
|
|
@ -100,9 +100,9 @@ defmodule Pleroma.Web.MastodonAPI.MarkerControllerTest do
|
|
|
|
|
assert response == %{
|
|
|
|
|
"notifications" => %{
|
|
|
|
|
"last_read_id" => "69888",
|
|
|
|
|
"unread_count" => 0,
|
|
|
|
|
"updated_at" => NaiveDateTime.to_iso8601(marker.updated_at),
|
|
|
|
|
"version" => 0
|
|
|
|
|
"version" => 0,
|
|
|
|
|
"pleroma" => %{ "unread_count" => 0 }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|