diff options
Diffstat (limited to 'web-ui/test/spec/search/results_highlighter.spec.js')
-rw-r--r-- | web-ui/test/spec/search/results_highlighter.spec.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/web-ui/test/spec/search/results_highlighter.spec.js b/web-ui/test/spec/search/results_highlighter.spec.js index 1631cf01..117f4cfd 100644 --- a/web-ui/test/spec/search/results_highlighter.spec.js +++ b/web-ui/test/spec/search/results_highlighter.spec.js @@ -1,18 +1,13 @@ describeComponent('search/results_highlighter', function () { 'use strict'; - var self; - - beforeEach(function () { - self = this; - }); it('highlights only words that matches with the keywords given', function () { this.setupComponent('<div id="text">Any one seeing too many open bugs</div>'); this.component.attr = {keywords: ["any"]}; - self.component.highlightResults(event, {where: '#text'}); + this.component.highlightResults(event, {where: '#text'}); - var highlightedWords = self.component.$node.find('.search-highlight').length; + var highlightedWords = this.component.$node.find('.search-highlight').length; expect(highlightedWords).toEqual(1); }); |