mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 01:57:55 +08:00
Update expected json content
This commit is contained in:
parent
fa2e05accd
commit
147b479dfc
@ -580,7 +580,7 @@ func TestContextRenderJSON(t *testing.T) {
|
|||||||
assert.Equal(t, 201, w.Code)
|
assert.Equal(t, 201, w.Code)
|
||||||
assert.Equal(
|
assert.Equal(
|
||||||
t,
|
t,
|
||||||
"{\"foo\":\"bar\",\"html\":\"\\u003cb\\u003e\"}\n",
|
"{\"foo\":\"bar\",\"html\":\"\\u003cb\\u003e\"}",
|
||||||
w.Body.String())
|
w.Body.String())
|
||||||
assert.Equal(t, "application/json; charset=utf-8", w.HeaderMap.Get("Content-Type"))
|
assert.Equal(t, "application/json; charset=utf-8", w.HeaderMap.Get("Content-Type"))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user