Fix flaky behaviour of getSearchedProjects due to missing gon.current_user_id

This commit is contained in:
kushalpandya 2017-09-05 19:23:46 +05:30
parent ca4a6e983c
commit 29ff4aa051

View file

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