diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-26 00:09:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-26 00:09:13 +0300 |
commit | 659ad26b4e0e1f792ab6d15ac8d6e47ec943e214 (patch) | |
tree | 5e395d172b681cfe396c671ebf7eef8789ef7334 /spec/frontend/releases/components/app_index_spec.js | |
parent | e93121b42cb4ca672c893c6be0a8af0c8d9f7987 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/releases/components/app_index_spec.js')
-rw-r--r-- | spec/frontend/releases/components/app_index_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/releases/components/app_index_spec.js b/spec/frontend/releases/components/app_index_spec.js index 2b5270e29d6..7955b079cbc 100644 --- a/spec/frontend/releases/components/app_index_spec.js +++ b/spec/frontend/releases/components/app_index_spec.js @@ -8,7 +8,7 @@ import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; import ReleasesApp from '~/releases/components/app_index.vue'; import ReleasesPagination from '~/releases/components/releases_pagination.vue'; import createStore from '~/releases/stores'; -import createListModule from '~/releases/stores/modules/list'; +import createIndexModule from '~/releases/stores/modules/index'; import { pageInfoHeadersWithoutPagination, pageInfoHeadersWithPagination } from '../mock_data'; jest.mock('~/lib/utils/common_utils', () => ({ @@ -41,15 +41,15 @@ describe('Releases App ', () => { }; const createComponent = (stateUpdates = {}) => { - const listModule = createListModule({ + const indexModule = createIndexModule({ ...defaultInitialState, ...stateUpdates, }); - fetchReleaseSpy = jest.spyOn(listModule.actions, 'fetchReleases'); + fetchReleaseSpy = jest.spyOn(indexModule.actions, 'fetchReleases'); const store = createStore({ - modules: { list: listModule }, + modules: { index: indexModule }, featureFlags: { graphqlReleaseData: true, graphqlReleasesPage: false, |