(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestUpdateReactionModerationStatus(t *testing.T) { |
| 71 | ctx := context.Background() |
| 72 | client, requester := newClient(t) |
| 73 | err := client.Moderation().UpdateReactionModerationStatus(ctx, "foo", "moderator_123", "complete", "watch", "mark_safe") |
| 74 | require.NoError(t, err) |
| 75 | testRequest( |
| 76 | t, |
| 77 | requester.req, |
| 78 | http.MethodPost, |
| 79 | "https://api.stream-io-api.com/api/v1.0/moderation/status/?api_key=key", |
| 80 | `{"entity_id":"foo", "entity_type":"stream:feeds:v2:reaction", "moderator_id": "moderator_123", "latest_moderator_action":"mark_safe", "recommended_action":"watch", "status":"complete"}`, |
| 81 | ) |
| 82 | } |
| 83 | |
| 84 | func TestUpdateStatusBatch(t *testing.T) { |
| 85 | ctx := context.Background() |
nothing calls this directly
no test coverage detected