(t *testing.T)
| 720 | } |
| 721 | |
| 722 | func TestRunList_QueryUnsupported(t *testing.T) { |
| 723 | ios, _, _, _ := iostreams.Test() |
| 724 | config := listConfig{ |
| 725 | opts: listOpts{ |
| 726 | number: 1, |
| 727 | owner: "monalisa", |
| 728 | query: "assignee:octocat", |
| 729 | }, |
| 730 | detector: &fd.DisabledDetectorMock{}, |
| 731 | io: ios, |
| 732 | } |
| 733 | |
| 734 | err := runList(config) |
| 735 | assert.EqualError(t, err, "the `--query` flag is not supported on this GitHub host") |
| 736 | } |