Recent mention searches now OR terms instead of AND (#2931)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
9e07f4b021
Коммит
07126101d3
@@ -767,6 +767,11 @@ func TestPostStoreSearch(t *testing.T) {
|
||||
if len(r12.Order) != 1 {
|
||||
t.Fatal("returned wrong search result")
|
||||
}
|
||||
|
||||
r13 := (<-store.Post().Search(teamId, userId, &model.SearchParams{Terms: "Jersey corey", IsHashtag: false, OrTerms: true})).Data.(*model.PostList)
|
||||
if len(r13.Order) != 2 {
|
||||
t.Fatal("returned wrong search result")
|
||||
}
|
||||
}
|
||||
|
||||
func TestUserCountsWithPostsByDay(t *testing.T) {
|
||||
|
||||
Ссылка в новой задаче
Block a user