diff options
Diffstat (limited to 'spec/frontend/vue_shared/components/filtered_search_bar/mock_data.js')
-rw-r--r-- | spec/frontend/vue_shared/components/filtered_search_bar/mock_data.js | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/spec/frontend/vue_shared/components/filtered_search_bar/mock_data.js b/spec/frontend/vue_shared/components/filtered_search_bar/mock_data.js index a22ad4c450e..7c9f3a3546a 100644 --- a/spec/frontend/vue_shared/components/filtered_search_bar/mock_data.js +++ b/spec/frontend/vue_shared/components/filtered_search_bar/mock_data.js @@ -97,6 +97,19 @@ export const projectMilestonesResponse = { }, }; +export const projectUsersResponse = { + data: { + project: { + id: 'gid://gitlab/Project/1', + attributes: { + nodes: mockUsers, + __typename: 'UserConnection', + }, + __typename: 'Project', + }, + }, +}; + export const mockCrmContacts = [ { __typename: 'CustomerRelationsContact', @@ -247,8 +260,8 @@ export const mockAuthorToken = { symbol: '@', token: UserToken, operators: OPERATORS_IS, - fetchPath: 'gitlab-org/gitlab-test', - fetchUsers: Api.projectUsers.bind(Api), + fullPath: 'gitlab-org/gitlab-test', + isProject: true, }; export const mockLabelToken = { |