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:
parent
2c4c1cac5c
commit
ca4a3dc8d0
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue