From 373046d2cc9ea319c28afa1105e99c63f69ba9cb Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Wed, 3 Jun 2020 17:39:16 +0200 Subject: [PATCH] [fix] update tests --- formatter/formatter_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/formatter/formatter_test.go b/formatter/formatter_test.go index 5b14a54..d73869c 100644 --- a/formatter/formatter_test.go +++ b/formatter/formatter_test.go @@ -29,7 +29,9 @@ func TestFormat(t *testing.T) { var jsonEnabledBuffer bytes.Buffer New(configFixture(true), "application/json; charset=utf-8").Format(&jsonEnabledBuffer, []byte("{\"json\": \"some value\"}")) var jsontargetBuffer bytes.Buffer - jsoncolor.NewFormatter().Format(&jsontargetBuffer, []byte("{\"json\": \"some value\"}")) + f := jsoncolor.NewFormatter() + f.Indent = " " + f.Format(&jsontargetBuffer, []byte("{\"json\": \"some value\"}")) jsontarget := jsontargetBuffer.String() if jsonEnabledBuffer.String() != jsontarget {