projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix-auto-link-for-profile-fields' into 'develop'
[akkoma]
/
test
/
activity
/
ir
/
topics_test.exs
diff --git
a/test/activity/ir/topics_test.exs
b/test/activity/ir/topics_test.exs
index e75f83586a5e585426d9ed7c4a5379f4e81074a9..14a6e6b71e8d10f2a9c3048d45740eda0c434dfa 100644
(file)
--- a/
test/activity/ir/topics_test.exs
+++ b/
test/activity/ir/topics_test.exs
@@
-59,8
+59,8
@@
defmodule Pleroma.Activity.Ir.TopicsTest do
describe "public visibility create events" do
setup do
activity = %Activity{
describe "public visibility create events" do
setup do
activity = %Activity{
- object: %Object{data: %{"
type" => "Create", "
attachment" => []}},
- data: %{"to" => [Pleroma.Constants.as_public()]}
+ object: %Object{data: %{"attachment" => []}},
+ data: %{"t
ype" => "Create", "t
o" => [Pleroma.Constants.as_public()]}
}
{:ok, activity: activity}
}
{:ok, activity: activity}
@@
-83,7
+83,7
@@
defmodule Pleroma.Activity.Ir.TopicsTest do
assert Enum.member?(topics, "hashtag:bar")
end
assert Enum.member?(topics, "hashtag:bar")
end
- test "only converts strin
n
gs to hash tags", %{
+ test "only converts strings to hash tags", %{
activity: %{object: %{data: data} = object} = activity
} do
tagged_data = Map.put(data, "tag", [2])
activity: %{object: %{data: data} = object} = activity
} do
tagged_data = Map.put(data, "tag", [2])
@@
-98,8
+98,8
@@
defmodule Pleroma.Activity.Ir.TopicsTest do
describe "public visibility create events with attachments" do
setup do
activity = %Activity{
describe "public visibility create events with attachments" do
setup do
activity = %Activity{
- object: %Object{data: %{"
type" => "Create", "
attachment" => ["foo"]}},
- data: %{"to" => [Pleroma.Constants.as_public()]}
+ object: %Object{data: %{"attachment" => ["foo"]}},
+ data: %{"t
ype" => "Create", "t
o" => [Pleroma.Constants.as_public()]}
}
{:ok, activity: activity}
}
{:ok, activity: activity}