mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-05 08:15:49 +01:00
add verification of the patch field in tests
This commit is contained in:
parent
b906cd6381
commit
f5f9637c1a
@ -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)
|
||||
}
|
||||
}))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user