Skip to content

Commit

Permalink
Merge branch 'v7'
Browse files Browse the repository at this point in the history
  • Loading branch information
FelisiaM committed Mar 11, 2021
2 parents 11cfaa2 + e951a00 commit bd66e0b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion util/ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func (ui *UI) DisplayJSON(name string, jsonData interface{}) error {
buff := new(bytes.Buffer)
encoder := json.NewEncoder(buff)
encoder.SetEscapeHTML(false)
encoder.SetIndent("", " ")
encoder.SetIndent("", " ")

err := encoder.Encode(jsonData)
if err != nil {
Expand Down
22 changes: 11 additions & 11 deletions util/ui/ui_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,17 +201,17 @@ var _ = Describe("UI", func() {

Expect(out).To(SatisfyAll(
Say("named_json: {\n"),
Say(" \"arr\": \\[\n"),
Say(" \"a\","),
Say(" \"b\"\n"),
Say(" \\],\n"),
Say(" \"bool\": true,\n"),
Say(" \"int\": 42,\n"),
Say(" \"map\": {\n"),
Say(" \"float\": 123.03\n"),
Say(" },\n"),
Say(" \"pass\": \"abc>&gd!f\",\n"),
Say(" \"str\": \"hello\"\n"),
Say(" \"arr\": \\[\n"),
Say(" \"a\","),
Say(" \"b\"\n"),
Say(" \\],\n"),
Say(" \"bool\": true,\n"),
Say(" \"int\": 42,\n"),
Say(" \"map\": {\n"),
Say(" \"float\": 123.03\n"),
Say(" },\n"),
Say(" \"pass\": \"abc>&gd!f\",\n"),
Say(" \"str\": \"hello\"\n"),
Say("}\n"),
Say("\n"),
))
Expand Down

0 comments on commit bd66e0b

Please sign in to comment.