Skip to content

Commit

Permalink
improve printed diffs in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Jul 6, 2022
1 parent 18ef7be commit 4a00ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/test/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func AssertEqualWithDiff(t *testing.T, observed interface{}, expected interface{
stringA := fmt.Sprintf("%v", observed)
stringB := fmt.Sprintf("%v", expected)
color := !fs.CheckIfWindows()
t.Fatal(diff(stringB, stringA, color))
t.Fatal("\n" + diff(stringB, stringA, color))
}
}

Expand Down

0 comments on commit 4a00ba9

Please sign in to comment.