X Tutup
Skip to content

Commit 05419e4

Browse files
committed
put gist fixture file into gist package
1 parent 97350e8 commit 05419e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/cmd/gist/create/create_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
const (
19-
fixtureFile = "../../../../test/fixtures/gistCreate.json"
19+
fixtureFile = "../fixture.txt"
2020
)
2121

2222
func Test_processFiles(t *testing.T) {
@@ -162,7 +162,7 @@ func Test_createRun(t *testing.T) {
162162
wantParams: map[string]interface{}{
163163
"public": true,
164164
"files": map[string]interface{}{
165-
"gistCreate.json": map[string]interface{}{
165+
"fixture.txt": map[string]interface{}{
166166
"content": "{}",
167167
},
168168
},
@@ -180,7 +180,7 @@ func Test_createRun(t *testing.T) {
180180
wantParams: map[string]interface{}{
181181
"description": "an incredibly interesting gist",
182182
"files": map[string]interface{}{
183-
"gistCreate.json": map[string]interface{}{
183+
"fixture.txt": map[string]interface{}{
184184
"content": "{}",
185185
},
186186
},
@@ -197,7 +197,7 @@ func Test_createRun(t *testing.T) {
197197
wantErr: false,
198198
wantParams: map[string]interface{}{
199199
"files": map[string]interface{}{
200-
"gistCreate.json": map[string]interface{}{
200+
"fixture.txt": map[string]interface{}{
201201
"content": "{}",
202202
},
203203
"gistfile1.txt": map[string]interface{}{

0 commit comments

Comments
 (0)
X Tutup