0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Added test coverage for search index

refs https://github.com/TryGhost/Team/issues/1665

- Added a test case for NOT matching text when searching in the search index
This commit is contained in:
Naz 2022-07-05 12:12:23 +02:00
parent 2c4c1cac5c
commit ca4a3dc8d0

View file

@ -39,8 +39,10 @@ describe('search index', function () {
await searchIndex.init({apiUrl, apiKey});
const searchResults = searchIndex.search('Barcelona');
let searchResults = searchIndex.search('Barcelona');
expect(searchResults.length).toEqual(1);
searchResults = searchIndex.search('Nothing like this');
expect(searchResults.length).toEqual(0);
});
});