mirror of https://github.com/gin-gonic/gin.git
chore(vendor): update json-iterator revison to fix TestRenderIndentedJSON failed (#1003)
* update json-iterator revison to fix TestRenderIndentedJSON failed * fix(test): add space between key and value as same as standard JSON. * fix(test): add space between key and value as same as standard JSON.
This commit is contained in:
parent
87fdff8f88
commit
02a6f9b6bc
|
@ -582,7 +582,7 @@ func TestContextRenderIndentedJSON(t *testing.T) {
|
|||
c.IndentedJSON(201, H{"foo": "bar", "bar": "foo", "nested": H{"foo": "bar"}})
|
||||
|
||||
assert.Equal(t, w.Code, 201)
|
||||
assert.Equal(t, "{\n \"bar\":\"foo\",\n \"foo\":\"bar\",\n \"nested\":{\n \"foo\":\"bar\"\n }\n}", w.Body.String())
|
||||
assert.Equal(t, "{\n \"bar\": \"foo\",\n \"foo\": \"bar\",\n \"nested\": {\n \"foo\": \"bar\"\n }\n}", w.Body.String())
|
||||
assert.Equal(t, "application/json; charset=utf-8", w.HeaderMap.Get("Content-Type"))
|
||||
}
|
||||
|
||||
|
|
|
@ -34,10 +34,10 @@
|
|||
"revisionTime": "2017-06-01T23:02:30Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "YY//OXgGrJOsiR8Cz1xexk/zwkc=",
|
||||
"checksumSHA1": "bgb/lk2wroBJ5z+JI2xnVj7WkwI=",
|
||||
"path": "github.com/json-iterator/go",
|
||||
"revision": "37ba1b32b5ed52dfaff0fe50d923d210c11c8daf",
|
||||
"revisionTime": "2017-07-08T17:01:13Z"
|
||||
"revision": "845d8438db34cc782608bbee7647a522b4e87de0",
|
||||
"revisionTime": "2017-07-10T17:07:18Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "9if9IBLsxkarJ804NPWAzgskIAk=",
|
||||
|
|
Loading…
Reference in New Issue