assertions := require.New(t)
bodyBytes, _ := json.Marshal("body")
assertions := require.New(t)
bodyBytes, _ := json.Marshal("body")
- succesfullReq, _ := http.NewRequest(http.MethodGet, "url", bytes.NewReader(bodyBytes))
+ successfulReq, _ := http.NewRequest(http.MethodGet, "url", bytes.NewReader(bodyBytes))
client := New(&http.Client{}, false)
payload := `json:"example"`
client := New(&http.Client{}, false)
payload := `json:"example"`
err := client.Delete(srv.URL, payload, nil, "admin", "pass")
if err != nil {
assert.Equal(t, "", err.Error())
}
err := client.Delete(srv.URL, payload, nil, "admin", "pass")
if err != nil {
assert.Equal(t, "", err.Error())
}