diff options
author | James Lopez <james@jameslopez.es> | 2017-02-24 14:02:31 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-02-24 14:02:31 +0300 |
commit | 5fda2aad746e14b1a098e8c47eef4e571d0d9de9 (patch) | |
tree | 0931c341ff9fa5b8c349c7466453082ce8bb9f0d /spec | |
parent | 40d7c13dd63639149af7dec476f9be84653d28da (diff) |
Revert "Merge branch '28357-colon-search' into 'master'
"
This reverts commit f948c2f4ec03c544a1453714189599d02bcd99e8.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/filtered_search/filtered_search_tokenizer_spec.js.es6 | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/javascripts/filtered_search/filtered_search_tokenizer_spec.js.es6 b/spec/javascripts/filtered_search/filtered_search_tokenizer_spec.js.es6 index 40ec0cf9d57..ac7f8e9cbcd 100644 --- a/spec/javascripts/filtered_search/filtered_search_tokenizer_spec.js.es6 +++ b/spec/javascripts/filtered_search/filtered_search_tokenizer_spec.js.es6 @@ -99,29 +99,6 @@ expect(results.tokens[2].value).toBe('Doing'); expect(results.tokens[2].symbol).toBe('~'); }); - - it('returns search value for invalid tokens', () => { - const results = gl.FilteredSearchTokenizer.processTokens('fake:token'); - expect(results.lastToken).toBe('fake:token'); - expect(results.searchToken).toBe('fake:token'); - expect(results.tokens.length).toEqual(0); - }); - - it('returns search value and token for mix of valid and invalid tokens', () => { - const results = gl.FilteredSearchTokenizer.processTokens('label:real fake:token'); - expect(results.tokens.length).toEqual(1); - expect(results.tokens[0].key).toBe('label'); - expect(results.tokens[0].value).toBe('real'); - expect(results.tokens[0].symbol).toBe(''); - expect(results.lastToken).toBe('fake:token'); - expect(results.searchToken).toBe('fake:token'); - }); - - it('returns search value for invalid symbols', () => { - const results = gl.FilteredSearchTokenizer.processTokens('std::includes'); - expect(results.lastToken).toBe('std::includes'); - expect(results.searchToken).toBe('std::includes'); - }); }); }); })(); |