Renamed Test to Request

This commit is contained in:
Eduard Urbach 2024-03-27 11:36:12 +01:00
parent ee653a173b
commit c4d4a1f0f0
Signed by: eduard
GPG key ID: 49226B848C78F6C8
2 changed files with 15 additions and 11 deletions

View file

@ -14,7 +14,7 @@ func TestBytes(t *testing.T) {
return ctx.Bytes([]byte("Hello"))
})
response := s.Test("GET", "/", nil)
response := s.Request("GET", "/", nil)
assert.Equal(t, response.Status(), 200)
assert.DeepEqual(t, response.Body(), []byte("Hello"))
}
@ -26,7 +26,7 @@ func TestString(t *testing.T) {
return ctx.String("Hello")
})
response := s.Test("GET", "/", nil)
response := s.Request("GET", "/", nil)
assert.Equal(t, response.Status(), 200)
assert.DeepEqual(t, response.Body(), []byte("Hello"))
}