add verification of the patch field in tests

pull/35620/head
Chris Edstrom 2025-10-12 05:18:54 +00:00
parent b906cd6381
commit f5f9637c1a
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ func TestAPIViewPulls(t *testing.T) {
assert.Equal(t, 1, files[0].Changes)
assert.Equal(t, 0, files[0].Deletions)
assert.Equal(t, "added", files[0].Status)
assert.Equal(t, gitdiff.RenderUnifiedDiff(patch.Files[0]), files[0].Patch)
}
}))
}