(t *testing.T)
| 171 | } |
| 172 | |
| 173 | func TestListSubscriptionsDecodesFields(t *testing.T) { |
| 174 | client, reg := newTestClient(t, "github.com") |
| 175 | reg.Register(httpmock.REST("GET", "event-subscriptions"), |
| 176 | httpmock.StringResponse(`{"subscriptions": [`+subscriptionJSON+`]}`)) |
| 177 | |
| 178 | subs, err := client.ListSubscriptions(context.Background(), 30) |
| 179 | |
| 180 | require.NoError(t, err) |
| 181 | assert.Equal(t, []Subscription{*wantSubscription}, subs) |
| 182 | } |
| 183 | |
| 184 | func TestDeleteSubscription(t *testing.T) { |
| 185 | client, reg := newTestClient(t, "github.com") |
nothing calls this directly
no test coverage detected