Skip to content

Commit 2cb2d02

Browse files
committed
chore(highlight): fix tests
1 parent 91c7634 commit 2cb2d02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/highlighting.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ o Round</span>`)
417417
}
418418
const expectedHtml = this.formatHtml(`Peo
419419
<span class="highlight-comment" data-word-id="myId" data-editable="ui-unwrap" data-highlight="comment">ple </span>
420-
Make The <br> W<span class="highlight-comment" data-word-id="spellcheckId" data-editable="ui-unwrap" data-highlight="spellcheck">orld</span> Go Round`)
420+
Make The <br> W<span class="highlight-spellcheck" data-word-id="spellcheckId" data-editable="ui-unwrap" data-highlight="spellcheck">orld</span> Go Round`)
421421
expect(this.getHtml()).toEqual(expectedHtml)
422422
expect(this.extract('comment')).toEqual(expectedRanges)
423423
expect(startIndex).toEqual(3)

src/highlight-support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const highlightSupport = {
2828
}
2929
},
3030

31-
highlightRange (editableHost, highlightId, startIndex, endIndex, dispatcher, type) {
31+
highlightRange (editableHost, highlightId, startIndex, endIndex, dispatcher, type = 'comment') {
3232
if (this.hasHighlight(editableHost, highlightId)) {
3333
this.removeHighlight(editableHost, highlightId)
3434
}

0 commit comments

Comments
 (0)