Skip to content

Commit 06d5dfd

Browse files
committed
fix(test): fix util test
1 parent 249b9df commit 06d5dfd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/__tests__/completion/util.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CancellationToken, CompletionItem, CompletionItemKind, CompletionItemTa
33
import { caseScore, matchScore, matchScoreWithPositions } from '../../completion/match'
44
import sources from '../../completion/sources'
55
import { CompleteOption, InsertMode, ISource } from '../../completion/types'
6-
import { checkIgnoreRegexps, Converter, ConvertOption, createKindMap, emptLabelDetails, getDetail, getDocumentaions, getInput, getKindHighlight, getKindText, getPriority, getReplaceRange, getResumeInput, getWord, hasAction, highlightOffert, indentChanged, isWordCode, MruLoader, OptionForWord, Selection, shouldIndent, shouldStop, toCompleteDoneItem } from '../../completion/util'
6+
import { checkIgnoreRegexps, Converter, ConvertOption, createKindMap, emptLabelDetails, getDetail, getDocumentaions, getInput, getKindHighlight, getKindText, getPriority, getReplaceRange, getResumeInput, getWord, hasAction, highlightOffset, indentChanged, isWordCode, MruLoader, OptionForWord, Selection, shouldIndent, shouldStop, toCompleteDoneItem } from '../../completion/util'
77
import { WordDistance } from '../../completion/wordDistance'
88
import events from '../../events'
99
import languages from '../../languages'
@@ -87,10 +87,10 @@ describe('util functions', () => {
8787
})
8888

8989
it('should get highlight offset', () => {
90-
let n = highlightOffert(3, { abbr: 'abc', filterText: 'def' })
90+
let n = highlightOffset(3, { abbr: 'abc', filterText: 'def' })
9191
expect(n).toBe(-1)
92-
expect(highlightOffert(3, { abbr: 'abc', filterText: 'abc' })).toBe(3)
93-
expect(highlightOffert(3, { abbr: 'xy abc', filterText: 'abc' })).toBe(6)
92+
expect(highlightOffset(3, { abbr: 'abc', filterText: 'abc' })).toBe(3)
93+
expect(highlightOffset(3, { abbr: 'xy abc', filterText: 'abc' })).toBe(6)
9494
})
9595

9696
it('should getKindText', () => {

0 commit comments

Comments
 (0)