projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CHANGELOG: Support `poll` notification type
[akkoma]
/
test
/
pleroma
/
web
/
common_api_test.exs
diff --git
a/test/pleroma/web/common_api_test.exs
b/test/pleroma/web/common_api_test.exs
index a5dfd39342e0776954aff9b44233518d7ff55fd6..4a10a5bc488e651ffbe2b1deb683f5fb9e62a02d 100644
(file)
--- a/
test/pleroma/web/common_api_test.exs
+++ b/
test/pleroma/web/common_api_test.exs
@@
-18,6
+18,7
@@
defmodule Pleroma.Web.CommonAPITest do
alias Pleroma.Web.ActivityPub.Visibility
alias Pleroma.Web.AdminAPI.AccountView
alias Pleroma.Web.CommonAPI
alias Pleroma.Web.ActivityPub.Visibility
alias Pleroma.Web.AdminAPI.AccountView
alias Pleroma.Web.CommonAPI
+ alias Pleroma.Workers.PollWorker
import Pleroma.Factory
import Mock
import Pleroma.Factory
import Mock
@@
-48,6
+49,12
@@
defmodule Pleroma.Web.CommonAPITest do
assert object.data["type"] == "Question"
assert object.data["oneOf"] |> length() == 2
assert object.data["type"] == "Question"
assert object.data["oneOf"] |> length() == 2
+
+ assert_enqueued(
+ worker: PollWorker,
+ args: %{op: "poll_end", activity_id: activity.id},
+ scheduled_at: NaiveDateTime.from_iso8601!(object.data["closed"])
+ )
end
end
end
end