mockIssueUpdateWithBody stubs the issue update and asserts the body it carries.
(t *testing.T, reg *httpmock.Registry, wantBody string)
| 2003 | // mockIssueUpdateWithBody stubs the issue update and asserts the body it |
| 2004 | // carries. |
| 2005 | func mockIssueUpdateWithBody(t *testing.T, reg *httpmock.Registry, wantBody string) { |
| 2006 | reg.Register( |
| 2007 | httpmock.GraphQL(`mutation IssueUpdate\b`), |
| 2008 | httpmock.GraphQLMutation(` |
| 2009 | { "data": { "updateIssue": { "__typename": "" } } }`, |
| 2010 | func(inputs map[string]any) { |
| 2011 | assert.Equal(t, wantBody, inputs["body"]) |
| 2012 | }), |
| 2013 | ) |
| 2014 | } |
| 2015 | |
| 2016 | func mockIssueUpdateApiActors(t *testing.T, reg *httpmock.Registry) { |
| 2017 | reg.Register( |
no test coverage detected