diff options
author | Gabriel Albo <gabriel@albo.com.br> | 2015-11-04 11:23:50 -0200 |
---|---|---|
committer | Gabriel Albo <gabriel@albo.com.br> | 2015-11-04 11:23:50 -0200 |
commit | 742f6c87b0ff37154b1c2779c0f5a44fd899c34d (patch) | |
tree | 763caa014955576b613c4114cb7962265b37e743 /web-ui/test/spec/search/results_highlighter.spec.js | |
parent | dccd63fcffe4a5b73282815514fdb0848a0468ed (diff) | |
parent | d79aa00e3c24c5bf5e5ed5ba5a9b976f93034362 (diff) |
Merge branch 'master' of github.com:pixelated-project/pixelated-user-agent
Diffstat (limited to 'web-ui/test/spec/search/results_highlighter.spec.js')
-rw-r--r-- | web-ui/test/spec/search/results_highlighter.spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/test/spec/search/results_highlighter.spec.js b/web-ui/test/spec/search/results_highlighter.spec.js index 523c3599..cfb61e9c 100644 --- a/web-ui/test/spec/search/results_highlighter.spec.js +++ b/web-ui/test/spec/search/results_highlighter.spec.js @@ -1,7 +1,7 @@ describeComponent('search/results_highlighter', function () { 'use strict'; - it('highlights only words that matches with the keywords given', function () { + it('highlights words or parts of words that match with the keywords given', function () { this.setupComponent('<div id="text">Any one seeing too many open bugs</div>'); this.component.attr = {keywords: ['any']}; @@ -9,7 +9,7 @@ describeComponent('search/results_highlighter', function () { var highlightedWords = this.component.$node.find('.search-highlight').length; - expect(highlightedWords).toEqual(1); + expect(highlightedWords).toEqual(2); }); it('resets highlights when a new search is performed', function() { |