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
1 changed files with 8 additions and 0 deletions

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