mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-28 13:34:30 +02:00
fast-path
This commit is contained in:
parent
d11637c4b1
commit
a2dc785d23
@ -53,6 +53,9 @@ func AssertHTMLElement[T int | bool](t testing.TB, doc *HTMLDoc, selector string
|
||||
|
||||
func assertHTMLEq(t testing.TB, expected, actual string) {
|
||||
t.Helper()
|
||||
if expected == actual {
|
||||
return
|
||||
}
|
||||
exp, err := html.Parse(strings.NewReader(expected))
|
||||
if !assert.NoError(t, err) {
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user