Skip to content

Commit

Permalink
[doc] updating testing documentation (labstack#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
nshmura authored and vishr committed Nov 20, 2016
1 parent a5b8107 commit 5a3fe3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/content/guide/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestCreateUser(t *testing.T) {
if assert.NoError(t, err) {
req.Header.Set(echo.HeaderContentType, echo.MIMEApplicationJSON)
rec := httptest.NewRecorder()
c := e.NewContext(standard.NewRequest(req, e.Logger()), standard.NewResponse(rec, e.Logger()))
c := e.NewContext(req, rec)
h := &handler{mockDB}

// Assertions
Expand All @@ -114,7 +114,7 @@ func TestGetUser(t *testing.T) {
e := echo.New()
req := new(http.Request)
rec := httptest.NewRecorder()
c := e.NewContext(standard.NewRequest(req, e.Logger()), standard.NewResponse(rec, e.Logger()))
c := e.NewContext(req, rec)
c.SetPath("/users/:email")
c.SetParamNames("email")
c.SetParamValues("[email protected]")
Expand Down

0 comments on commit 5a3fe3f

Please sign in to comment.