Skip to content

Commit efb4585

Browse files
committed
chore(highlight-spec): use this context
1 parent fccde8d commit efb4585

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/highlighting.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,10 @@ Make The <br> W<span class="highlight-spellcheck" data-word-id="spellcheckId" da
426426
})
427427

428428
it('normalizes a simple text node after removing a highlight', function () {
429-
setupHighlightEnv(self, 'People Make The World Go Round')
430-
self.highlightRange('myId', 3, 7)
431-
const normalizeSpy = sinon.spy(self.div, 'normalize')
432-
self.removeHighlight('myId')
429+
setupHighlightEnv(this, 'People Make The World Go Round')
430+
this.highlightRange('myId', 3, 7)
431+
const normalizeSpy = sinon.spy(this.div, 'normalize')
432+
this.removeHighlight('myId')
433433
// There is no way to see the actual error in a test since it only happens in (non-headless)
434434
// Chome environments. We just check if the normalize method has been called here.
435435
expect(normalizeSpy.callCount).toEqual(1)

0 commit comments

Comments
 (0)