From 14aeb4880fa7589da5a2902a8a0068abfcaf3a6d Mon Sep 17 00:00:00 2001 From: sunxingbo Date: Thu, 22 Jul 2021 14:15:31 +0800 Subject: [PATCH] format the JSONMarshal unit test --- client/httplib/httplib_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/httplib/httplib_test.go b/client/httplib/httplib_test.go index 58e5a994..471be02c 100644 --- a/client/httplib/httplib_test.go +++ b/client/httplib/httplib_test.go @@ -440,9 +440,9 @@ func TestBeegoHTTPRequestResponseForValue(t *testing.T) { func TestBeegoHTTPRequestJSONMarshal(t *testing.T) { req := Post("http://beego.me") req.SetEscapeHTML(false) - body := map[string]interface{} { + body := map[string]interface{}{ "escape": "left&right", } b, _ := req.JSONMarshal(body) - assert.Equal(t,fmt.Sprintf(`{"escape":"left&right"}%s`, "\n"), string(b)) + assert.Equal(t, fmt.Sprintf(`{"escape":"left&right"}%s`, "\n"), string(b)) }