Commit f1bcf1e5 authored by Bryce Johnson's avatar Bryce Johnson

Remove turbolinks from filtered search after rebase.

parent fbd09871
/* global Turbolinks */ //= require lib/utils/url_utility
//= require turbolinks
//= require lib/utils/common_utils //= require lib/utils/common_utils
//= require filtered_search/filtered_search_token_keys //= require filtered_search/filtered_search_token_keys
//= require filtered_search/filtered_search_tokenizer //= require filtered_search/filtered_search_tokenizer
...@@ -38,7 +36,7 @@ ...@@ -38,7 +36,7 @@
it('should search with a single word', () => { it('should search with a single word', () => {
getInput().value = 'searchTerm'; getInput().value = 'searchTerm';
spyOn(Turbolinks, 'visit').and.callFake((url) => { spyOn(gl.utils, 'visitUrl').and.callFake((url) => {
expect(url).toEqual(`${defaultParams}&search=searchTerm`); expect(url).toEqual(`${defaultParams}&search=searchTerm`);
}); });
...@@ -48,7 +46,7 @@ ...@@ -48,7 +46,7 @@
it('should search with multiple words', () => { it('should search with multiple words', () => {
getInput().value = 'awesome search terms'; getInput().value = 'awesome search terms';
spyOn(Turbolinks, 'visit').and.callFake((url) => { spyOn(gl.utils, 'visitUrl').and.callFake((url) => {
expect(url).toEqual(`${defaultParams}&search=awesome+search+terms`); expect(url).toEqual(`${defaultParams}&search=awesome+search+terms`);
}); });
...@@ -58,7 +56,7 @@ ...@@ -58,7 +56,7 @@
it('should search with special characters', () => { it('should search with special characters', () => {
getInput().value = '~!@#$%^&*()_+{}:<>,.?/'; getInput().value = '~!@#$%^&*()_+{}:<>,.?/';
spyOn(Turbolinks, 'visit').and.callFake((url) => { spyOn(gl.utils, 'visitUrl').and.callFake((url) => {
expect(url).toEqual(`${defaultParams}&search=~!%40%23%24%25%5E%26*()_%2B%7B%7D%3A%3C%3E%2C.%3F%2F`); expect(url).toEqual(`${defaultParams}&search=~!%40%23%24%25%5E%26*()_%2B%7B%7D%3A%3C%3E%2C.%3F%2F`);
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment