Skip to content

Commit f5f9637

Browse files
committed
add verification of the patch field in tests
1 parent b906cd6 commit f5f9637

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/api_pull_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func TestAPIViewPulls(t *testing.T) {
8080
assert.Equal(t, 1, files[0].Changes)
8181
assert.Equal(t, 0, files[0].Deletions)
8282
assert.Equal(t, "added", files[0].Status)
83+
assert.Equal(t, gitdiff.RenderUnifiedDiff(patch.Files[0]), files[0].Patch)
8384
}
8485
}))
8586
}

0 commit comments

Comments
 (0)