Renamed Test to Request
This commit is contained in:
@ -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"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user