Commit 29ff4aa0 authored by kushalpandya's avatar kushalpandya

Fix flaky behaviour of `getSearchedProjects` due to missing `gon.current_user_id`

parent ca4a6e98
......@@ -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,
};
......
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