Skip to content

Commit 815655d

Browse files
committed
feat(fake): remove issue route from fake http server
The issue route is removed from the fake HTTP server to reduce the scope of the fake server. This change simplifies the fake server and makes it easier to maintain.
1 parent 26aebc3 commit 815655d

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

internal/fake/http.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,6 @@ func fetchRoute() []*route {
4949
`/repos/([^/]+)/([^/]+)/compare/\w+\.\.\.\w+`,
5050
)),
5151
},
52-
{
53-
method: "GET",
54-
file: "../../../testdata/issue.json",
55-
fn: handleSuccess,
56-
regexp: regexp.MustCompile(
57-
fmt.Sprintf(
58-
"^%s%s$",
59-
baseURLPath,
60-
`/repos/([^/]+)/([^/]+)/issues/(\d+)`,
61-
)),
62-
},
6352
}
6453
}
6554

0 commit comments

Comments
 (0)