diff options
author | kushalpandya <kushal@gitlab.com> | 2017-09-05 19:23:46 +0530 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-09-05 19:23:46 +0530 |
commit | 29ff4aa0516c47ee038cc1b39c74fc8fbebb27b1 (patch) | |
tree | 07690d5aad495a7b0af1d30d17eb5d48e7eefaff /spec | |
parent | ca4a6e983c4cc6e3529a3018d9e947b9e1bad894 (diff) | |
download | gitlab-ce-29ff4aa0516c47ee038cc1b39c74fc8fbebb27b1.tar.gz |
Fix flaky behaviour of `getSearchedProjects` due to missing `gon.current_user_id`
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/projects_dropdown/service/projects_service_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/javascripts/projects_dropdown/service/projects_service_spec.js b/spec/javascripts/projects_dropdown/service/projects_service_spec.js index e9aabfaec1f..d5dd8b3449a 100644 --- a/spec/javascripts/projects_dropdown/service/projects_service_spec.js +++ b/spec/javascripts/projects_dropdown/service/projects_service_spec.js @@ -15,6 +15,7 @@ describe('ProjectsService', () => { beforeEach(() => { gon.api_version = currentSession.apiVersion; + gon.current_user_id = 1; service = new ProjectsService(currentSession.username); }); @@ -35,7 +36,7 @@ describe('ProjectsService', () => { const queryParams = { simple: false, per_page: 20, - membership: false, + membership: true, order_by: 'last_activity_at', search: searchQuery, }; |