diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-18 12:10:03 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-18 12:10:03 +0000 |
commit | 38a1a6cb91bd4cd95d18db9a4bfd219bfb75401b (patch) | |
tree | 7b3d217aa21180af6256b99a8a6ba76775edd4b8 /spec/frontend/search | |
parent | e6779ab919283efbd93a0e3ed2356c58b19f9c93 (diff) | |
download | gitlab-ce-38a1a6cb91bd4cd95d18db9a4bfd219bfb75401b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/search')
-rw-r--r-- | spec/frontend/search/store/actions_spec.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/frontend/search/store/actions_spec.js b/spec/frontend/search/store/actions_spec.js index 634661c5843..9519aba165b 100644 --- a/spec/frontend/search/store/actions_spec.js +++ b/spec/frontend/search/store/actions_spec.js @@ -67,7 +67,14 @@ describe('Global Search Store Actions', () => { it('calls Api.groupProjects', () => { actions.fetchProjects({ commit: mockCommit, state }); - expect(Api.groupProjects).toHaveBeenCalled(); + expect(Api.groupProjects).toHaveBeenCalledWith( + state.query.group_id, + state.query.search, + { + order_by: 'similarity', + }, + expect.any(Function), + ); expect(Api.projects).not.toHaveBeenCalled(); }); }); |