sebdah / goldie

Golden file testing for Go
MIT License
228 stars 19 forks source link

goldie.New(ts.T()).AssertJson(ts.T(), tt.golden, response) when rerun and diff in wsl2 show error #37

Open tritueviet opened 3 years ago

tritueviet commented 3 years ago

goldie.New(ts.T()).AssertJson(ts.T(), tt.golden, response) when rerun and diff in wsl2 show error

test.go:6747: Result did not match the golden fixture. Diff is below:

but the output is same as. When I generate or save file again it is not happen.

tritueviet commented 3 years ago

https://github.com/sebdah/goldie/blob/97888220c2ec6fe6d4a7c337fadd6510629a7660/v2/assertions.go#L148

compare it not normalize in an expected file when the reader. Please fix it