Fix tests
This commit is contained in:
parent
038e5e5342
commit
f5b0354ae3
2 changed files with 3 additions and 1 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue