File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,10 @@ describe('StepSearch', () => {
48
48
} )
49
49
50
50
it ( 'returns step which keyword match the query' , async ( ) => {
51
- const searchResults = await stepSearch . search ( 'Given' )
52
- expect ( searchResults ) . to . deep . eq ( [ steps [ 0 ] ] )
53
- } )
54
-
55
- xit ( 'it does not exclude "Then" and "When" from indexing' , ( ) => {
56
- // By default, ElasticLurn exclude some words from indexing/searching,
57
- // amongst them are 'Then' and 'When'.
58
- // See: http://elasticlunr.com/docs/stop_word_filter.js.html#resetStopWords
51
+ for ( const step of steps ) {
52
+ const searchResults = await stepSearch . search ( step . keyword )
53
+ expect ( searchResults ) . to . deep . eq ( [ step ] )
54
+ }
59
55
} )
60
56
61
57
it ( 'returns step which DocString matches the query' , async ( ) => {
You can’t perform that action at this time.
0 commit comments