Skip to content

Commit 20f2bb9

Browse files
committed
chore(highlight-spec): use this context
1 parent 227dcc1 commit 20f2bb9

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
@@ -425,10 +425,10 @@ Make The <br> W<span class="highlight-spellcheck" data-word-id="spellcheckId" da
425425
})
426426

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

0 commit comments

Comments
 (0)