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(/\s+/g, ' ')
|
||||||
.replace(/[[@#:*~\\$|^\]?/"'(){}+?!,.-]/g, '')
|
.replace(/[[@#:*~\\$|^\]?/"'(){}+?!,.-]/g, '')
|
||||||
.split(' ')
|
.split(' ')
|
||||||
.map(s => s.toLowerCase().match(/^(not|and|or)$/)? '"' + s + '"' : s + '*')
|
.map(s => (s.toLowerCase().match(/^(not|and|or)$/) ? '"' + s + '"' : s + '*'))
|
||||||
.join(' ')
|
.join(' ')
|
||||||
//console.log(myQuery)
|
// console.log(myQuery)
|
||||||
const postCypher = `
|
const postCypher = `
|
||||||
CALL db.index.fulltext.queryNodes('post_fulltext_search', $query)
|
CALL db.index.fulltext.queryNodes('post_fulltext_search', $query)
|
||||||
YIELD node as resource, score
|
YIELD node as resource, score
|
||||||
|
|||||||
@ -24,7 +24,7 @@ Feature: Search
|
|||||||
| 101 Essays that will change the way you think |
|
| 101 Essays that will change the way you think |
|
||||||
|
|
||||||
Scenario: Press enter starts search
|
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 have one item in the select dropdown
|
||||||
Then I should see the following posts in the select dropdown:
|
Then I should see the following posts in the select dropdown:
|
||||||
| title |
|
| title |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user