Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-17 00:09:48 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-17 00:09:48 +0300
commit9b8433e5ecd54f93ee8df3bb9d9038e978d57afc (patch)
treeb94758d475fe9ffe547eb838fbf15b3910234426 /spec/frontend/search
parentdbfedde341ef6434d40c4c2495f2be751f8bb973 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/search')
-rw-r--r--spec/frontend/search/store/actions_spec.js19
1 files changed, 6 insertions, 13 deletions
diff --git a/spec/frontend/search/store/actions_spec.js b/spec/frontend/search/store/actions_spec.js
index 67bd3194f20..2f93d3f6805 100644
--- a/spec/frontend/search/store/actions_spec.js
+++ b/spec/frontend/search/store/actions_spec.js
@@ -121,19 +121,12 @@ describe('Global Search Store Actions', () => {
describe('when groupId is set', () => {
it('calls Api.groupProjects with expected parameters', () => {
- const callbackTest = jest.fn();
- actions.fetchProjects({ commit: mockCommit, state }, undefined, callbackTest);
- expect(Api.groupProjects).toHaveBeenCalledWith(
- state.query.group_id,
- state.query.search,
- {
- order_by: 'similarity',
- include_subgroups: true,
- with_shared: false,
- },
- callbackTest,
- true,
- );
+ actions.fetchProjects({ commit: mockCommit, state }, undefined);
+ expect(Api.groupProjects).toHaveBeenCalledWith(state.query.group_id, state.query.search, {
+ order_by: 'similarity',
+ include_subgroups: true,
+ with_shared: false,
+ });
expect(Api.projects).not.toHaveBeenCalled();
});
});