forked from YokaiRick/akkoma
Update test for custom profile fields
This commit is contained in:
parent
3549cd9754
commit
d74efde94e
1 changed files with 8 additions and 0 deletions
|
@ -563,6 +563,14 @@ test "it works with custom profile fields" do
|
||||||
%{"name" => "foo", "value" => "updated"},
|
%{"name" => "foo", "value" => "updated"},
|
||||||
%{"name" => "foo1", "value" => "updated"}
|
%{"name" => "foo1", "value" => "updated"}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
update_data = put_in(update_data, ["object", "attachment"], [])
|
||||||
|
|
||||||
|
{:ok, _} = Transmogrifier.handle_incoming(update_data)
|
||||||
|
|
||||||
|
user = User.get_cached_by_ap_id(user.ap_id)
|
||||||
|
|
||||||
|
assert User.Info.fields(user.info) == []
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it works for incoming update activities which lock the account" do
|
test "it works for incoming update activities which lock the account" do
|
||||||
|
|
Loading…
Reference in a new issue