Skip to content

Commit

Permalink
Fix mock da resposta
Browse files Browse the repository at this point in the history
  • Loading branch information
joliveiradantas authored Apr 22, 2024
1 parent d1a281a commit 9bddf67
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 9bddf67

Please sign in to comment.