From 02a6f9b6bc8ffba2e8b55ca78d5a9448ea8aef1e Mon Sep 17 00:00:00 2001 From: Eason Lin Date: Tue, 11 Jul 2017 13:59:03 +0800 Subject: [PATCH] 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. --- context_test.go | 2 +- vendor/vendor.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/context_test.go b/context_test.go index f57fa6f..758fecd 100644 --- a/context_test.go +++ b/context_test.go @@ -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")) } diff --git a/vendor/vendor.json b/vendor/vendor.json index cb752e9..3af3cb5 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -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=",