(t *testing.T)
| 185 | } |
| 186 | |
| 187 | func TestUpdateCollectionObject(t *testing.T) { |
| 188 | ctx := context.Background() |
| 189 | client, requester := newClient(t) |
| 190 | |
| 191 | data := map[string]any{ |
| 192 | "name": "Jane", |
| 193 | } |
| 194 | _, err := client.Collections().Update(ctx, "test-collection", "123", data) |
| 195 | require.NoError(t, err) |
| 196 | expectedBody := `{"data":{"name":"Jane"}}` |
| 197 | testRequest(t, requester.req, http.MethodPut, "https://api.stream-io-api.com/api/v1.0/collections/test-collection/123/?api_key=key", expectedBody) |
| 198 | } |
nothing calls this directly
no test coverage detected