(t *testing.T)
| 54 | } |
| 55 | |
| 56 | func TestUpdateActivityModerationStatus(t *testing.T) { |
| 57 | ctx := context.Background() |
| 58 | client, requester := newClient(t) |
| 59 | err := client.Moderation().UpdateActivityModerationStatus(ctx, "foo", "moderator_123", "complete", "watch", "mark_safe") |
| 60 | require.NoError(t, err) |
| 61 | testRequest( |
| 62 | t, |
| 63 | requester.req, |
| 64 | http.MethodPost, |
| 65 | "https://api.stream-io-api.com/api/v1.0/moderation/status/?api_key=key", |
| 66 | `{"entity_id":"foo", "entity_type":"stream:feeds:v2:activity", "moderator_id": "moderator_123", "latest_moderator_action":"mark_safe", "recommended_action":"watch", "status":"complete"}`, |
| 67 | ) |
| 68 | } |
| 69 | |
| 70 | func TestUpdateReactionModerationStatus(t *testing.T) { |
| 71 | ctx := context.Background() |
nothing calls this directly
no test coverage detected