mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
fix(ui): remove code search git grep warning (#6794)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6794 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Reviewed-by: Beowulf <beowulf@beocode.eu> Reviewed-by: Gusted <gusted@noreply.codeberg.org> Reviewed-by: Shiny Nematoda <snematoda@noreply.codeberg.org> Co-authored-by: Robert Wolff <mahlzahn@posteo.de> Co-committed-by: Robert Wolff <mahlzahn@posteo.de>
This commit is contained in:
parent
0d10d0971e
commit
862f4ad60c
4 changed files with 0 additions and 14 deletions
|
@ -20,11 +20,6 @@ func TestExploreCodeSearchIndexer(t *testing.T) {
|
|||
resp := MakeRequest(t, req, http.StatusOK)
|
||||
doc := NewHTMLParser(t, resp.Body).Find(".explore")
|
||||
|
||||
msg := doc.
|
||||
Find(".ui.container").
|
||||
Find(".ui.message[data-test-tag=grep]")
|
||||
assert.EqualValues(t, 0, msg.Length())
|
||||
|
||||
doc.Find(".file-body").Each(func(i int, sel *goquery.Selection) {
|
||||
assert.Positive(t, sel.Find(".code-inner").Find(".search-highlight").Length(), 0)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue