Skip to content

Commit

Permalink
Add tags for added and removed content in jsondiff (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano authored Mar 31, 2022
1 parent 7869bd5 commit d1a1203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/testrunner/runners/pipeline/test_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ func diffJson(want, got []byte) (string, error) {
opts := jsondiff.DefaultConsoleOptions()

// Remove colored output.
opts.Added = jsondiff.Tag{}
opts.Removed = jsondiff.Tag{}
opts.Added = jsondiff.Tag{Begin: "+ "}
opts.Removed = jsondiff.Tag{Begin: "- "}
opts.Changed = jsondiff.Tag{}
opts.Skipped = jsondiff.Tag{}

Expand Down

0 comments on commit d1a1203

Please sign in to comment.