Skip to content

Commit

Permalink
Aula_4
Browse files Browse the repository at this point in the history
  • Loading branch information
leollo98 committed May 31, 2022
1 parent a95919a commit c098b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestVerificaStatusCodeDaSaudacaoComParametro(t *testing.T) {
resposta := httptest.NewRecorder()
r.ServeHTTP(resposta, req)
assert.Equal(t, http.StatusOK, resposta.Code, "Deveriam ser iguais")
mockDaResposta := `{"API diz":"Oi gui, Tudo beleza?"}`
mockDaResposta := `{"API diz":"E ai gui, Tudo beleza?"}`
respostaBody, _ := ioutil.ReadAll(resposta.Body)
assert.Equal(t, mockDaResposta, string(respostaBody))
}
Expand Down

0 comments on commit c098b0f

Please sign in to comment.