(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func TestUpdateUser(t *testing.T) { |
| 80 | ctx := context.Background() |
| 81 | client, requester := newClient(t) |
| 82 | |
| 83 | data := map[string]any{ |
| 84 | "name": "Jane", |
| 85 | } |
| 86 | _, err := client.Users().Update(ctx, "123", data) |
| 87 | require.NoError(t, err) |
| 88 | expectedBody := `{"data":{"name":"Jane"}}` |
| 89 | testRequest(t, requester.req, http.MethodPut, "https://api.stream-io-api.com/api/v1.0/user/123/?api_key=key", expectedBody) |
| 90 | } |
nothing calls this directly
no test coverage detected