Skip to content

Commit

Permalink
fix error in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSp committed Jul 27, 2022
1 parent e41d12b commit c43b084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -13,7 +13,7 @@ go get github.com/migueleliasweb/go-github-mock

- Create mocks for successive calls for the same endpoint
- Pagination support
- Mock error returns

- High level abstraction helps writing readabe unittests (see `mock.WithRequestMatch`)
- Lower level abstraction for advanced uses (see `mock.WithRequestMatchHandler`)

Expand Down Expand Up @@ -129,7 +129,7 @@ mockedHTTPClient := mock.NewMockedHTTPClient(
mock.WithRequestMatchHandler(
mock.GetUsersByUsername,
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
WriteError(
mock.WriteError(
w,
http.StatusInternalServerError,
"github went belly up or something",
Expand Down

0 comments on commit c43b084

Please sign in to comment.