mirror of https://github.com/go-gitea/gitea.git
add verification of the patch field in tests
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…
Reference in New Issue