(t *testing.T, reg *httpmock.Registry)
| 696 | } |
| 697 | |
| 698 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) { |
| 699 | reg.Register( |
| 700 | httpmock.GraphQL(`mutation CommentUpdate\b`), |
| 701 | httpmock.GraphQLMutation(` |
| 702 | { "data": { "updateIssueComment": { "issueComment": { |
| 703 | "url": "https://github.com/OWNER/REPO/issues/123#issuecomment-111" |
| 704 | } } } }`, |
| 705 | func(inputs map[string]interface{}) { |
| 706 | assert.Equal(t, "id1", inputs["id"]) |
| 707 | assert.Equal(t, "comment body", inputs["body"]) |
| 708 | }), |
| 709 | ) |
| 710 | } |
| 711 | |
| 712 | func mockCommentDelete(t *testing.T, reg *httpmock.Registry) { |
| 713 | reg.Register( |
no test coverage detected