Merge branch 'docs/kyclos' into 'develop'
[akkoma] / test / web / mastodon_api / controllers / status_controller_test.exs
index b03b4b344904ab42904052b47eef3ebd590996ca..83138d7ef9b2bd07fdc8d93e3d72f5cb53054100 100644 (file)
@@ -370,6 +370,11 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
 
       assert NaiveDateTime.diff(NaiveDateTime.from_iso8601!(response["poll"]["expires_at"]), time) in 420..430
       refute response["poll"]["expred"]
+
+      question = Object.get_by_id(response["poll"]["id"])
+
+      # closed contains utc timezone
+      assert question.data["closed"] =~ "Z"
     end
 
     test "option limit is enforced", %{conn: conn} do