diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-08 21:09:48 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-08 21:09:48 +0000 |
commit | 59e6c2df22c69baa791529db3326e68c9de10b54 (patch) | |
tree | aa75309a037a6031c38f8ccd9afe53cbcd519355 /spec/frontend/users_select | |
parent | e7527f548681e4f9efd32f9c3da937ad74c68948 (diff) | |
download | gitlab-ce-59e6c2df22c69baa791529db3326e68c9de10b54.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/users_select')
-rw-r--r-- | spec/frontend/users_select/test_helper.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/users_select/test_helper.js b/spec/frontend/users_select/test_helper.js index c5adbe9bb09..59edde48eab 100644 --- a/spec/frontend/users_select/test_helper.js +++ b/spec/frontend/users_select/test_helper.js @@ -1,6 +1,7 @@ import MockAdapter from 'axios-mock-adapter'; import { memoize, cloneDeep } from 'lodash'; -import { getFixture, getJSONFixture } from 'helpers/fixtures'; +import usersFixture from 'test_fixtures/autocomplete/users.json'; +import { getFixture } from 'helpers/fixtures'; import waitForPromises from 'helpers/wait_for_promises'; import axios from '~/lib/utils/axios_utils'; import UsersSelect from '~/users_select'; @@ -15,7 +16,7 @@ const getUserSearchHTML = memoize((fixturePath) => { return el.outerHTML; }); -const getUsersFixture = memoize(() => getJSONFixture('autocomplete/users.json')); +const getUsersFixture = () => usersFixture; export const getUsersFixtureAt = (idx) => getUsersFixture()[idx]; |