Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
f1bcf1e5
Commit
f1bcf1e5
authored
Feb 01, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove turbolinks from filtered search after rebase.
parent
fbd09871
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
spec/javascripts/filtered_search/filtered_search_manager_spec.js.es6
...ripts/filtered_search/filtered_search_manager_spec.js.es6
+4
-6
No files found.
spec/javascripts/filtered_search/filtered_search_manager_spec.js.es6
View file @
f1bcf1e5
/* global Turbolinks */
//= require turbolinks
//= require lib/utils/url_utility
//= require lib/utils/common_utils
//= require filtered_search/filtered_search_token_keys
//= require filtered_search/filtered_search_tokenizer
...
...
@@ -38,7 +36,7 @@
it('should search with a single word', () => {
getInput().value = 'searchTerm';
spyOn(
Turbolinks, 'visit
').and.callFake((url) => {
spyOn(
gl.utils, 'visitUrl
').and.callFake((url) => {
expect(url).toEqual(`${defaultParams}&search=searchTerm`);
});
...
...
@@ -48,7 +46,7 @@
it('should search with multiple words', () => {
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`);
});
...
...
@@ -58,7 +56,7 @@
it('should search with special characters', () => {
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`);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment