Fix flaky behaviour of getSearchedProjects
due to missing gon.current_user_id
This commit is contained in:
parent
ca4a6e983c
commit
29ff4aa051
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue