diff options
Diffstat (limited to 'api4')
-rw-r--r-- | api4/user_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api4/user_test.go b/api4/user_test.go index d044cee9b..9a360c7e4 100644 --- a/api4/user_test.go +++ b/api4/user_test.go @@ -739,6 +739,8 @@ func TestPatchUser(t *testing.T) { patch.LastName = new(string) *patch.LastName = "Wilander" patch.Position = new(string) + patch.NotifyProps = model.StringMap{} + patch.NotifyProps["comment"] = "somethingrandom" ruser, resp := Client.PatchUser(user.Id, patch) CheckNoError(t, resp) @@ -759,6 +761,9 @@ func TestPatchUser(t *testing.T) { if ruser.Username != user.Username { t.Fatal("Username should not have updated") } + if ruser.NotifyProps["comment"] != "somethingrandom" { + t.Fatal("NotifyProps did not update properly") + } _, resp = Client.PatchUser("junk", patch) CheckBadRequestStatus(t, resp) |