summaryrefslogtreecommitdiff
path: root/web-ui/test/spec
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-11-03 17:59:07 -0200
committerGiovane <giovaneliberato@gmail.com>2015-11-03 17:59:41 -0200
commit0f84c6354a116fd53628b23a56c1528c5dd3e8ef (patch)
treed20846b7b47dd613fffce87ce8a43b686d658819 /web-ui/test/spec
parentaf7631369c96d3da54abb4e1cab44ea61151c481 (diff)
[#508] Making search also work with substrings - pairing w/ @pereiragislene
Diffstat (limited to 'web-ui/test/spec')
-rw-r--r--web-ui/test/spec/search/results_highlighter.spec.js4
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() {