diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-02-08 13:47:20 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-09 10:51:36 -0600 |
commit | a421258c498ce5746cef2bc90f86c738a6099366 (patch) | |
tree | 3c787d04c84f451505440da0fe6238a3ae637623 /spec | |
parent | 31c10441fc658de0011e9bae3162c27d0ba937ef (diff) | |
download | gitlab-ce-a421258c498ce5746cef2bc90f86c738a6099366.tar.gz |
fix failing karma test
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/filtered_search/dropdown_user_spec.js.es6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/filtered_search/dropdown_user_spec.js.es6 b/spec/javascripts/filtered_search/dropdown_user_spec.js.es6 index f4b0d60db34..fa9d03c8a9a 100644 --- a/spec/javascripts/filtered_search/dropdown_user_spec.js.es6 +++ b/spec/javascripts/filtered_search/dropdown_user_spec.js.es6 @@ -9,7 +9,7 @@ require('~/filtered_search/dropdown_user'); let dropdownUser; beforeEach(() => { - spyOn(gl.FilteredSearchDropdown.prototype, 'constructor').and.callFake(() => {}); + spyOn(gl.DropdownUser.prototype, 'bindEvents').and.callFake(() => {}); spyOn(gl.DropdownUser.prototype, 'getProjectId').and.callFake(() => {}); spyOn(gl.DropdownUtils, 'getSearchInput').and.callFake(() => {}); @@ -39,7 +39,7 @@ require('~/filtered_search/dropdown_user'); describe('config droplabAjaxFilter\'s endpoint', () => { beforeEach(() => { - spyOn(gl.FilteredSearchDropdown.prototype, 'constructor').and.callFake(() => {}); + spyOn(gl.DropdownUser.prototype, 'bindEvents').and.callFake(() => {}); spyOn(gl.DropdownUser.prototype, 'getProjectId').and.callFake(() => {}); }); |