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))
type args struct {
method string
wantErr error
}{
{
- name: "succesfull newRequest",
+ name: "successful newRequest",
args: args{
method: http.MethodGet,
path: "url",
payload: "body",
},
- want: succesfullReq,
+ want: successfulReq,
wantErr: nil,
},
{