Skip to content

Commit 0950c24

Browse files
committed
chore: update and re-enable test
1 parent aeab13e commit 0950c24

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/search/StepSearch.spec.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,10 @@ describe('StepSearch', () => {
4848
})
4949

5050
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+
}
5955
})
6056

6157
it('returns step which DocString matches the query', async () => {

0 commit comments

Comments
 (0)