(t *testing.T)
| 189 | } |
| 190 | |
| 191 | func TestIssueList_tty_withAppFlag(t *testing.T) { |
| 192 | http := &httpmock.Registry{} |
| 193 | defer http.Verify(t) |
| 194 | |
| 195 | http.Register( |
| 196 | httpmock.GraphQL(`query IssueList\b`), |
| 197 | httpmock.GraphQLQuery(` |
| 198 | { "data": { "repository": { |
| 199 | "hasIssuesEnabled": true, |
| 200 | "issues": { "nodes": [] } |
| 201 | } } }`, func(_ string, params map[string]interface{}) { |
| 202 | assert.Equal(t, "app/dependabot", params["author"].(string)) |
| 203 | })) |
| 204 | |
| 205 | output, err := runCommand(http, true, "--app dependabot") |
| 206 | assert.EqualError(t, err, "no issues match your search in OWNER/REPO") |
| 207 | |
| 208 | assert.Equal(t, "", output.String()) |
| 209 | assert.Equal(t, "", output.Stderr()) |
| 210 | } |
| 211 | |
| 212 | func TestIssueList_withInvalidLimitFlag(t *testing.T) { |
| 213 | http := &httpmock.Registry{} |
nothing calls this directly
no test coverage detected