mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-22 17:42:14 +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,
|
||||
"{\"foo\":\"bar\",\"html\":\"\\u003cb\\u003e\"}\n",
|
||||
"{\"foo\":\"bar\",\"html\":\"\\u003cb\\u003e\"}",
|
||||
w.Body.String())
|
||||
assert.Equal(t, "application/json; charset=utf-8", w.HeaderMap.Get("Content-Type"))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user