mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Please pass the tests now
This commit is contained in:
parent
de6053dfa3
commit
07b2b7ca3b
@ -10,9 +10,9 @@ export default {
|
||||
.replace(/\s+/g, ' ')
|
||||
.replace(/[[@#:*~\\$|^\]?/"'(){}+?!,.-]/g, '')
|
||||
.split(' ')
|
||||
.map(s => s.toLowerCase().match(/^(not|and|or)$/)? '"' + s + '"' : s + '*')
|
||||
.map(s => (s.toLowerCase().match(/^(not|and|or)$/) ? '"' + s + '"' : s + '*'))
|
||||
.join(' ')
|
||||
//console.log(myQuery)
|
||||
// console.log(myQuery)
|
||||
const postCypher = `
|
||||
CALL db.index.fulltext.queryNodes('post_fulltext_search', $query)
|
||||
YIELD node as resource, score
|
||||
|
||||
@ -24,7 +24,7 @@ Feature: Search
|
||||
| 101 Essays that will change the way you think |
|
||||
|
||||
Scenario: Press enter starts search
|
||||
When I type "Ess" and press Enter
|
||||
When I type "Es" and press Enter
|
||||
Then I should have one item in the select dropdown
|
||||
Then I should see the following posts in the select dropdown:
|
||||
| title |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user