(t *testing.T, reg *httpmock.Registry)
| 714 | } |
| 715 | |
| 716 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) { |
| 717 | reg.Register( |
| 718 | httpmock.GraphQL(`mutation CommentUpdate\b`), |
| 719 | httpmock.GraphQLMutation(` |
| 720 | { "data": { "updateIssueComment": { "issueComment": { |
| 721 | "url": "https://github.com/OWNER/REPO/pull/123#issuecomment-111" |
| 722 | } } } }`, |
| 723 | func(inputs map[string]interface{}) { |
| 724 | assert.Equal(t, "id1", inputs["id"]) |
| 725 | assert.Equal(t, "comment body", inputs["body"]) |
| 726 | }), |
| 727 | ) |
| 728 | } |
| 729 | |
| 730 | func mockCommentDelete(t *testing.T, reg *httpmock.Registry) { |
| 731 | reg.Register( |
no test coverage detected