Fix typos

Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
This commit is contained in:
Dimitris Apostolou
2022-03-13 14:09:19 +02:00
parent b17dd0584d
commit aedd4daa66
54 changed files with 62 additions and 62 deletions
@@ -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,