Skip to content
Myr

chore(vendor): update json-iterator revison to fix TestRenderIndentedJSON failed (#1003)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* 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.

authored by Eason Lin · committed by Bo-Yi Wu · parent 87fdff8 · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:vendor/vendor.json+3 added-3 removed
modified:context_test.go+1 added-1 removed
580 unmodified lines
581582 c.IndentedJSON(201, H{"foo": "bar", "bar": "foo", "nested": H{"foo": "bar"}})583584 assert.Equal(t, w.Code, 201)585 assert.Equal(t, "{\n \"bar\":\"foo\",\n \"foo\":\"bar\",\n \"nested\":{\n \"foo\":\"bar\"\n }\n}", w.Body.String())585 assert.Equal(t, "{\n \"bar\": \"foo\",\n \"foo\": \"bar\",\n \"nested\": {\n \"foo\": \"bar\"\n }\n}", w.Body.String())586 assert.Equal(t, "application/json; charset=utf-8", w.HeaderMap.Get("Content-Type"))587}588589// Tests that no Custom JSON is rendered if code is 204
635 unmodified lines