mirror of
https://github.com/labstack/echo.git
synced 2025-12-13 23:35:43 +02:00
fixed json, xml pretty print
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
10
echo_test.go
10
echo_test.go
@@ -29,6 +29,16 @@ const (
|
||||
invalidContent = "invalid content"
|
||||
)
|
||||
|
||||
const userJSONPretty = `{
|
||||
"id": 1,
|
||||
"name": "Jon Snow"
|
||||
}`
|
||||
|
||||
const userXMLPretty = `<user>
|
||||
<id>1</id>
|
||||
<name>Jon Snow</name>
|
||||
</user>`
|
||||
|
||||
func TestEcho(t *testing.T) {
|
||||
e := New()
|
||||
req, _ := http.NewRequest(GET, "/", nil)
|
||||
|
||||
Reference in New Issue
Block a user