goldie icon indicating copy to clipboard operation
goldie copied to clipboard

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

Open tritueviet opened this issue 3 years ago • 1 comments

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 avatar Sep 27 '21 09:09 tritueviet

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

tritueviet avatar Sep 27 '21 09:09 tritueviet