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:
Eason Lin 2017-07-11 13:59:03 +08:00 committed by Bo-Yi Wu
parent 87fdff8f88
commit 02a6f9b6bc
2 changed files with 4 additions and 4 deletions

View File

@ -582,7 +582,7 @@ func TestContextRenderIndentedJSON(t *testing.T) {
c.IndentedJSON(201, H{"foo": "bar", "bar": "foo", "nested": H{"foo": "bar"}}) c.IndentedJSON(201, H{"foo": "bar", "bar": "foo", "nested": H{"foo": "bar"}})
assert.Equal(t, w.Code, 201) 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")) assert.Equal(t, "application/json; charset=utf-8", w.HeaderMap.Get("Content-Type"))
} }

6
vendor/vendor.json vendored
View File

@ -34,10 +34,10 @@
"revisionTime": "2017-06-01T23:02:30Z" "revisionTime": "2017-06-01T23:02:30Z"
}, },
{ {
"checksumSHA1": "YY//OXgGrJOsiR8Cz1xexk/zwkc=", "checksumSHA1": "bgb/lk2wroBJ5z+JI2xnVj7WkwI=",
"path": "github.com/json-iterator/go", "path": "github.com/json-iterator/go",
"revision": "37ba1b32b5ed52dfaff0fe50d923d210c11c8daf", "revision": "845d8438db34cc782608bbee7647a522b4e87de0",
"revisionTime": "2017-07-08T17:01:13Z" "revisionTime": "2017-07-10T17:07:18Z"
}, },
{ {
"checksumSHA1": "9if9IBLsxkarJ804NPWAzgskIAk=", "checksumSHA1": "9if9IBLsxkarJ804NPWAzgskIAk=",