Renamed Test to Request

This commit is contained in:
2024-03-27 11:36:12 +01:00
parent 271e1cd5bd
commit cf3daa1f1b
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"))
}