(t *testing.T)
| 221 | } |
| 222 | |
| 223 | func TestIssueList_disabledIssues(t *testing.T) { |
| 224 | http := &httpmock.Registry{} |
| 225 | defer http.Verify(t) |
| 226 | |
| 227 | http.Register( |
| 228 | httpmock.GraphQL(`query IssueList\b`), |
| 229 | httpmock.StringResponse(` |
| 230 | { "data": { "repository": { |
| 231 | "hasIssuesEnabled": false |
| 232 | } } }`), |
| 233 | ) |
| 234 | |
| 235 | _, err := runCommand(http, true, "") |
| 236 | if err == nil || err.Error() != "the 'OWNER/REPO' repository has disabled issues" { |
| 237 | t.Errorf("error running command `issue list`: %v", err) |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | // TODO advancedIssueSearchCleanup |
| 242 | // Simplify this test to only a single test case once GHES 3.17 support ends. |
nothing calls this directly
no test coverage detected