forked from kevadesu/forgejo
fix(code search): empty mode dropdown when keyword is empty
This commit is contained in:
parent
d5bd212d00
commit
c53d21965a
2 changed files with 7 additions and 3 deletions
|
@ -78,6 +78,7 @@ func testSearchRepo(t *testing.T, indexer bool) {
|
|||
code_indexer.UpdateRepoIndexer(repo)
|
||||
}
|
||||
|
||||
testSearch(t, "/user2/glob/search?q=", []string{}, indexer)
|
||||
testSearch(t, "/user2/glob/search?q=loren&page=1", []string{"a.txt"}, indexer)
|
||||
testSearch(t, "/user2/glob/search?q=loren&page=1&mode=exact", []string{"a.txt"}, indexer)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue