Skip to content

Commit 6c497e7

Browse files
committed
test(gist): fix failing tests
1 parent 42238dc commit 6c497e7

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

pkg/cmd/gist/edit/edit_test.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,6 @@ func Test_editRun(t *testing.T) {
230230
wantLastRequestParameters: map[string]interface{}{
231231
"description": "catbug",
232232
"files": map[string]interface{}{
233-
"cicada.txt": map[string]interface{}{
234-
"content": "bwhiizzzbwhuiiizzzz",
235-
"filename": "cicada.txt",
236-
},
237233
"unix.md": map[string]interface{}{
238234
"content": "new file content",
239235
"filename": "unix.md",
@@ -478,10 +474,6 @@ func Test_editRun(t *testing.T) {
478474
wantLastRequestParameters: map[string]interface{}{
479475
"description": "",
480476
"files": map[string]interface{}{
481-
"sample.txt": map[string]interface{}{
482-
"filename": "sample.txt",
483-
"content": "bwhiizzzbwhuiiizzzz",
484-
},
485477
"sample2.txt": nil,
486478
},
487479
},
@@ -650,10 +642,6 @@ func Test_editRun(t *testing.T) {
650642
"content": "new file content",
651643
"filename": "large.txt",
652644
},
653-
"also-truncated.txt": map[string]interface{}{
654-
"content": "This is the full content of the also-truncated file retrieved from raw URL",
655-
"filename": "also-truncated.txt",
656-
},
657645
},
658646
},
659647
},
@@ -687,9 +675,6 @@ func Test_editRun(t *testing.T) {
687675
if filename == "large.txt" {
688676
reg.Register(httpmock.REST("GET", "user/1234/raw/large.txt"),
689677
httpmock.StringResponse("This is the full content of the large file retrieved from raw URL"))
690-
} else if filename == "also-truncated.txt" {
691-
reg.Register(httpmock.REST("GET", "user/1234/raw/also-truncated.txt"),
692-
httpmock.StringResponse("This is the full content of the also-truncated file retrieved from raw URL"))
693678
}
694679
}
695680
}

0 commit comments

Comments
 (0)