diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-14 21:09:08 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-14 21:09:08 +0000 |
commit | 866ca4e49ff74ffadf8e6f6ff663a168489c2aba (patch) | |
tree | cc3135b1bae11dbd1cb3a30cb547473ad89a5551 /spec/frontend/releases | |
parent | 26a50872e9da9509c52c70f74dc21698fec906db (diff) | |
download | gitlab-ce-866ca4e49ff74ffadf8e6f6ff663a168489c2aba.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/releases')
-rw-r--r-- | spec/frontend/releases/components/app_edit_spec.js (renamed from spec/frontend/releases/detail/components/app_spec.js) | 18 | ||||
-rw-r--r-- | spec/frontend/releases/components/evidence_block_spec.js (renamed from spec/frontend/releases/list/components/evidence_block_spec.js) | 4 | ||||
-rw-r--r-- | spec/frontend/releases/components/release_block_footer_spec.js (renamed from spec/frontend/releases/list/components/release_block_footer_spec.js) | 4 | ||||
-rw-r--r-- | spec/frontend/releases/components/release_block_header_spec.js (renamed from spec/frontend/releases/list/components/release_block_header_spec.js) | 4 | ||||
-rw-r--r-- | spec/frontend/releases/components/release_block_milestone_info_spec.js (renamed from spec/frontend/releases/list/components/release_block_milestone_info_spec.js) | 6 | ||||
-rw-r--r-- | spec/frontend/releases/components/release_block_spec.js (renamed from spec/frontend/releases/list/components/release_block_spec.js) | 8 | ||||
-rw-r--r-- | spec/frontend/releases/stores/modules/detail/actions_spec.js (renamed from spec/frontend/releases/detail/store/actions_spec.js) | 8 | ||||
-rw-r--r-- | spec/frontend/releases/stores/modules/detail/mutations_spec.js (renamed from spec/frontend/releases/detail/store/mutations_spec.js) | 8 |
8 files changed, 34 insertions, 26 deletions
diff --git a/spec/frontend/releases/detail/components/app_spec.js b/spec/frontend/releases/components/app_edit_spec.js index 894cd3a8f14..cb940facbd6 100644 --- a/spec/frontend/releases/detail/components/app_spec.js +++ b/spec/frontend/releases/components/app_edit_spec.js @@ -1,10 +1,10 @@ import Vuex from 'vuex'; import { mount } from '@vue/test-utils'; -import ReleaseDetailApp from '~/releases/detail/components/app.vue'; -import { release } from '../../mock_data'; +import ReleaseEditApp from '~/releases/components/app_edit.vue'; +import { release } from '../mock_data'; import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; -describe('Release detail component', () => { +describe('Release edit component', () => { let wrapper; let releaseClone; let actions; @@ -27,9 +27,17 @@ describe('Release detail component', () => { navigateToReleasesPage: jest.fn(), }; - const store = new Vuex.Store({ actions, state }); + const store = new Vuex.Store({ + modules: { + detail: { + namespaced: true, + actions, + state, + }, + }, + }); - wrapper = mount(ReleaseDetailApp, { + wrapper = mount(ReleaseEditApp, { store, }); diff --git a/spec/frontend/releases/list/components/evidence_block_spec.js b/spec/frontend/releases/components/evidence_block_spec.js index 39f3975f665..7b896575965 100644 --- a/spec/frontend/releases/list/components/evidence_block_spec.js +++ b/spec/frontend/releases/components/evidence_block_spec.js @@ -2,8 +2,8 @@ import { mount } from '@vue/test-utils'; import { GlLink } from '@gitlab/ui'; import { truncateSha } from '~/lib/utils/text_utility'; import Icon from '~/vue_shared/components/icon.vue'; -import { release } from '../../mock_data'; -import EvidenceBlock from '~/releases/list/components/evidence_block.vue'; +import { release } from '../mock_data'; +import EvidenceBlock from '~/releases/components/evidence_block.vue'; import ClipboardButton from '~/vue_shared/components/clipboard_button.vue'; describe('Evidence Block', () => { diff --git a/spec/frontend/releases/list/components/release_block_footer_spec.js b/spec/frontend/releases/components/release_block_footer_spec.js index 07f61303e33..4125d5c7e74 100644 --- a/spec/frontend/releases/list/components/release_block_footer_spec.js +++ b/spec/frontend/releases/components/release_block_footer_spec.js @@ -1,9 +1,9 @@ import { mount } from '@vue/test-utils'; import { GlLink } from '@gitlab/ui'; import { trimText } from 'helpers/text_helper'; -import ReleaseBlockFooter from '~/releases/list/components/release_block_footer.vue'; +import ReleaseBlockFooter from '~/releases/components/release_block_footer.vue'; import Icon from '~/vue_shared/components/icon.vue'; -import { release } from '../../mock_data'; +import { release } from '../mock_data'; import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; jest.mock('~/vue_shared/mixins/timeago', () => ({ diff --git a/spec/frontend/releases/list/components/release_block_header_spec.js b/spec/frontend/releases/components/release_block_header_spec.js index 1f2331635d6..157df15ff3c 100644 --- a/spec/frontend/releases/list/components/release_block_header_spec.js +++ b/spec/frontend/releases/components/release_block_header_spec.js @@ -1,9 +1,9 @@ import { shallowMount } from '@vue/test-utils'; import { cloneDeep, merge } from 'lodash'; import { GlLink } from '@gitlab/ui'; -import ReleaseBlockHeader from '~/releases/list/components/release_block_header.vue'; +import ReleaseBlockHeader from '~/releases/components/release_block_header.vue'; import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; -import { release as originalRelease } from '../../mock_data'; +import { release as originalRelease } from '../mock_data'; describe('Release block header', () => { let wrapper; diff --git a/spec/frontend/releases/list/components/release_block_milestone_info_spec.js b/spec/frontend/releases/components/release_block_milestone_info_spec.js index 8a63dbbdca7..5a3204a4ce2 100644 --- a/spec/frontend/releases/list/components/release_block_milestone_info_spec.js +++ b/spec/frontend/releases/components/release_block_milestone_info_spec.js @@ -1,9 +1,9 @@ import { mount } from '@vue/test-utils'; import { GlProgressBar, GlLink, GlBadge, GlButton } from '@gitlab/ui'; import { trimText } from 'helpers/text_helper'; -import ReleaseBlockMilestoneInfo from '~/releases/list/components/release_block_milestone_info.vue'; -import { milestones } from '../../mock_data'; -import { MAX_MILESTONES_TO_DISPLAY } from '~/releases/list/constants'; +import ReleaseBlockMilestoneInfo from '~/releases/components/release_block_milestone_info.vue'; +import { milestones } from '../mock_data'; +import { MAX_MILESTONES_TO_DISPLAY } from '~/releases/constants'; describe('Release block milestone info', () => { let wrapper; diff --git a/spec/frontend/releases/list/components/release_block_spec.js b/spec/frontend/releases/components/release_block_spec.js index 0e8d569f326..aba1b8aff41 100644 --- a/spec/frontend/releases/list/components/release_block_spec.js +++ b/spec/frontend/releases/components/release_block_spec.js @@ -1,11 +1,11 @@ import $ from 'jquery'; import { mount } from '@vue/test-utils'; import { first } from 'underscore'; -import EvidenceBlock from '~/releases/list/components/evidence_block.vue'; -import ReleaseBlock from '~/releases/list/components/release_block.vue'; -import ReleaseBlockFooter from '~/releases/list/components/release_block_footer.vue'; +import EvidenceBlock from '~/releases/components/evidence_block.vue'; +import ReleaseBlock from '~/releases/components/release_block.vue'; +import ReleaseBlockFooter from '~/releases/components/release_block_footer.vue'; import timeagoMixin from '~/vue_shared/mixins/timeago'; -import { release } from '../../mock_data'; +import { release } from '../mock_data'; import Icon from '~/vue_shared/components/icon.vue'; import { scrollToElement } from '~/lib/utils/common_utils'; diff --git a/spec/frontend/releases/detail/store/actions_spec.js b/spec/frontend/releases/stores/modules/detail/actions_spec.js index 5a1447aa4fc..0c2763822c9 100644 --- a/spec/frontend/releases/detail/store/actions_spec.js +++ b/spec/frontend/releases/stores/modules/detail/actions_spec.js @@ -1,10 +1,10 @@ import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import testAction from 'helpers/vuex_action_helper'; -import * as actions from '~/releases/detail/store/actions'; -import * as types from '~/releases/detail/store/mutation_types'; -import { release } from '../../mock_data'; -import state from '~/releases/detail/store/state'; +import * as actions from '~/releases/stores/modules/detail/actions'; +import * as types from '~/releases/stores/modules/detail/mutation_types'; +import { release } from '../../../mock_data'; +import state from '~/releases/stores/modules/detail/state'; import createFlash from '~/flash'; import { redirectTo } from '~/lib/utils/url_utility'; import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; diff --git a/spec/frontend/releases/detail/store/mutations_spec.js b/spec/frontend/releases/stores/modules/detail/mutations_spec.js index 106a40c812e..81b2dde75ab 100644 --- a/spec/frontend/releases/detail/store/mutations_spec.js +++ b/spec/frontend/releases/stores/modules/detail/mutations_spec.js @@ -5,10 +5,10 @@ * is resolved */ -import state from '~/releases/detail/store/state'; -import mutations from '~/releases/detail/store/mutations'; -import * as types from '~/releases/detail/store/mutation_types'; -import { release } from '../../mock_data'; +import state from '~/releases/stores/modules/detail/state'; +import mutations from '~/releases/stores/modules/detail/mutations'; +import * as types from '~/releases/stores/modules/detail/mutation_types'; +import { release } from '../../../mock_data'; describe('Release detail mutations', () => { let stateClone; |