Fix typos
Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
This commit is contained in:
@@ -61,7 +61,7 @@ describe('Scheduler', () => {
|
||||
// Stop scheduling process
|
||||
testScheduler.stop();
|
||||
|
||||
// Should't throw error, as it is stopped.
|
||||
// Shouldn't throw error, as it is stopped.
|
||||
expect(() =>
|
||||
testScheduler.addToSchedule(mockTask2, 4),
|
||||
).not.toThrowError();
|
||||
|
||||
@@ -932,7 +932,7 @@ describe('LunrSearchEngine', () => {
|
||||
});
|
||||
inspectableSearchEngine.setDocStore({ 'existing-location': doc });
|
||||
|
||||
// Mock methds called by close handler.
|
||||
// Mock methods called by close handler.
|
||||
indexerMock.buildIndex.mockReturnValueOnce('expected-index');
|
||||
indexerMock.getDocumentStore.mockReturnValueOnce({
|
||||
'new-location': doc,
|
||||
|
||||
@@ -68,7 +68,7 @@ export class LunrSearchEngine implements SearchEngine {
|
||||
lunrQueryBuilder: q => {
|
||||
const termToken = lunr.tokenizer(term);
|
||||
|
||||
// Support for typeahead seach is based on https://github.com/olivernn/lunr.js/issues/256#issuecomment-295407852
|
||||
// Support for typeahead search is based on https://github.com/olivernn/lunr.js/issues/256#issuecomment-295407852
|
||||
// look for an exact match and apply a large positive boost
|
||||
q.term(termToken, {
|
||||
usePipeline: true,
|
||||
|
||||
Reference in New Issue
Block a user