Fix tests

This commit is contained in:
Mislav Marohnić 2020-02-27 12:11:35 +01:00
parent 038e5e5342
commit f5b0354ae3
2 changed files with 3 additions and 1 deletions

View file

@ -243,9 +243,10 @@ func TestIssueView(t *testing.T) {
eq(t, url, "https://github.com/OWNER/REPO/issues/123")
}
func TestIssueViewWithHash(t *testing.T) {
func TestIssueView_numberArgWithHash(t *testing.T) {
initBlankContext("OWNER/REPO", "master")
http := initFakeHTTP()
http.StubRepoResponse("OWNER", "REPO")
http.StubResponse(200, bytes.NewBufferString(`
{ "data": { "repository": { "hasIssuesEnabled": true, "issue": {

View file

@ -475,6 +475,7 @@ func TestPRView_numberArg(t *testing.T) {
func TestPRView_numberArgWithHash(t *testing.T) {
initBlankContext("OWNER/REPO", "master")
http := initFakeHTTP()
http.StubRepoResponse("OWNER", "REPO")
http.StubResponse(200, bytes.NewBufferString(`
{ "data": { "repository": { "pullRequest": {