brianreavis / sifter.js

A library for textually searching arrays and hashes of objects by property (or multiple properties). Designed specifically for autocomplete.
1.09k stars 125 forks source link

Bad Returned Results Test #60

Open jachin opened 4 years ago

jachin commented 4 years ago

I think this line is wrong.

https://github.com/brianreavis/sifter.js/blob/97270b46707ddfb117570653f74153919dbb9cd7/test/api.js#L392

It should be something like

var result_hash = sifter_hash.search('switzerland europe', options);

But it looks like that will also break the test, because the id will be different a instead of 0.