(t *testing.T)
| 159 | } |
| 160 | |
| 161 | func TestIssueDelete_doesNotExist(t *testing.T) { |
| 162 | httpRegistry := &httpmock.Registry{} |
| 163 | defer httpRegistry.Verify(t) |
| 164 | |
| 165 | httpRegistry.Register( |
| 166 | httpmock.GraphQL(`query IssueByNumber\b`), |
| 167 | httpmock.StringResponse(` |
| 168 | { "errors": [ |
| 169 | { "message": "Could not resolve to an Issue with the number of 13." } |
| 170 | ] } |
| 171 | `), |
| 172 | ) |
| 173 | |
| 174 | _, err := runCommand(httpRegistry, nil, true, "13") |
| 175 | if err == nil || err.Error() != "GraphQL: Could not resolve to an Issue with the number of 13." { |
| 176 | t.Errorf("error running command `issue delete`: %v", err) |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | func TestIssueDelete_issuesDisabled(t *testing.T) { |
| 181 | httpRegistry := &httpmock.Registry{} |
nothing calls this directly
no test coverage detected