Skip to content

Commit a3033f2

Browse files
committed
Refactor a test case
1 parent 3e27052 commit a3033f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/jsonnet-fmt-hook/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func TestExecJsonnetFmt(t *testing.T) {
164164

165165
gotDiff := normalizeDiff(got.diff.text)
166166
wantDiff := normalizeDiff(want.diff.text)
167-
if normalizeDiff(got.diff.text) != normalizeDiff(want.diff.text) {
167+
if gotDiff != wantDiff {
168168
t.Errorf("%s, want=%v, got=%v", baseInfo, wantDiff, gotDiff)
169169
}
170170
}

0 commit comments

Comments
 (0)