Skip to content

Commit 83ec495

Browse files
committed
get rid of fixture
1 parent 1b37681 commit 83ec495

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

command/issue_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,7 @@ func TestIssueClose(t *testing.T) {
693693
} } }
694694
`))
695695

696-
jsonFile, _ := os.Open("../test/fixtures/issueClose.json")
697-
defer jsonFile.Close()
698-
http.StubResponse(200, jsonFile)
696+
http.StubResponse(200, bytes.NewBufferString(`{"id": "THE-ID"}`))
699697

700698
output, err := RunCommand(issueCloseCmd, "issue close 13")
701699
if err != nil {

test/fixtures/issueClose.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)