Skip to content

Commit

Permalink
Revert "allow body for HTTPBodyContains and HTTPBodyNotContains for
Browse files Browse the repository at this point in the history
POST" PR #938

This reverts commit 136026f.
  • Loading branch information
boyan-soubachov committed Jun 5, 2020
1 parent e7cc868 commit 303198d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assert/http_assertions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func TestHttpBody(t *testing.T) {

body := strings.NewReader("I will get this request body back as response!!")
assert.True(HTTPBodyContains(mockT, httpPostHandler, "POST", "/", nil, body, "I will get this request body back as response!!"))
assert.True(HTTPBodyNotContains(mockT, httpPostHandler, "POST", "/", nil, body, "world"))
assert.True(HTTPBodyNotContains(mockT, httpPostHandler, "POST", "/", nil, nil, "world"))
}

func TestHttpBodyWrappers(t *testing.T) {
Expand All @@ -184,7 +184,7 @@ func TestHttpBodyWrappers(t *testing.T) {

body := strings.NewReader("I will get this request body back as response!!")
assert.True(mockAssert.HTTPBodyContains(httpPostHandler, "POST", "/", nil, body, "I will get this request body back as response!!"))
assert.True(mockAssert.HTTPBodyNotContains(httpPostHandler, "POST", "/", nil, body, "world"))
assert.True(mockAssert.HTTPBodyNotContains(httpPostHandler, "POST", "/", nil, nil, "world"))
}

func httpGetHelloNameHandler(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 303198d

Please sign in to comment.