0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-11-04 15:04:00 +01:00

add verification of the patch field in tests

This commit is contained in:
Chris Edstrom 2025-10-12 05:18:54 +00:00
parent b906cd6381
commit f5f9637c1a

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)
}
}))
}