1
0
Fork 0
forked from mirrors/akkoma

Update test for custom profile fields

This commit is contained in:
kPherox 2019-08-26 02:00:41 +09:00
parent 3549cd9754
commit d74efde94e
No known key found for this signature in database
GPG key ID: C04751C2BFA2F62D

View file

@ -563,6 +563,14 @@ test "it works with custom profile fields" do
%{"name" => "foo", "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
test "it works for incoming update activities which lock the account" do