Please pass the tests now

This commit is contained in:
Moriz Wahl 2020-01-06 18:36:59 +01:00
parent de6053dfa3
commit 07b2b7ca3b
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 |