Skip to content

Commit

Permalink
make autogold.Want diffs also use ANSII colors
Browse files Browse the repository at this point in the history
For consistency with `autogold.Equal`

Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Dec 21, 2022
1 parent bc12358 commit a59348a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion want.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func Want(name string, want interface{}) Value {
}
if *failOnUpdate {
writeProfile()
t.Log(fmt.Errorf("mismatch (-want +got):\n%s", diff))
t.Log(fmt.Errorf("mismatch (-want +got):\n%s", colorDiff(diff)))
t.FailNow()
}
},
Expand Down

0 comments on commit a59348a

Please sign in to comment.