diff options
Diffstat (limited to 'spec/frontend/static_site_editor')
11 files changed, 22 insertions, 27 deletions
diff --git a/spec/frontend/static_site_editor/components/edit_area_spec.js b/spec/frontend/static_site_editor/components/edit_area_spec.js index 07097d00cc5..17fb3fe788a 100644 --- a/spec/frontend/static_site_editor/components/edit_area_spec.js +++ b/spec/frontend/static_site_editor/components/edit_area_spec.js @@ -1,15 +1,14 @@ -import { nextTick } from 'vue'; import { shallowMount } from '@vue/test-utils'; +import { nextTick } from 'vue'; import { stubComponent } from 'helpers/stub_component'; -import RichContentEditor from '~/vue_shared/components/rich_content_editor/rich_content_editor.vue'; -import { EDITOR_TYPES } from '~/vue_shared/components/rich_content_editor/constants'; - import EditArea from '~/static_site_editor/components/edit_area.vue'; -import PublishToolbar from '~/static_site_editor/components/publish_toolbar.vue'; -import EditHeader from '~/static_site_editor/components/edit_header.vue'; import EditDrawer from '~/static_site_editor/components/edit_drawer.vue'; +import EditHeader from '~/static_site_editor/components/edit_header.vue'; +import PublishToolbar from '~/static_site_editor/components/publish_toolbar.vue'; import UnsavedChangesConfirmDialog from '~/static_site_editor/components/unsaved_changes_confirm_dialog.vue'; +import { EDITOR_TYPES } from '~/vue_shared/components/rich_content_editor/constants'; +import RichContentEditor from '~/vue_shared/components/rich_content_editor/rich_content_editor.vue'; import { sourceContentTitle as title, diff --git a/spec/frontend/static_site_editor/components/edit_drawer_spec.js b/spec/frontend/static_site_editor/components/edit_drawer_spec.js index c47eef59997..402dfe441c5 100644 --- a/spec/frontend/static_site_editor/components/edit_drawer_spec.js +++ b/spec/frontend/static_site_editor/components/edit_drawer_spec.js @@ -1,6 +1,5 @@ -import { shallowMount } from '@vue/test-utils'; - import { GlDrawer } from '@gitlab/ui'; +import { shallowMount } from '@vue/test-utils'; import EditDrawer from '~/static_site_editor/components/edit_drawer.vue'; import FrontMatterControls from '~/static_site_editor/components/front_matter_controls.vue'; diff --git a/spec/frontend/static_site_editor/components/edit_meta_controls_spec.js b/spec/frontend/static_site_editor/components/edit_meta_controls_spec.js index cf82efc3d0b..7a8834933e0 100644 --- a/spec/frontend/static_site_editor/components/edit_meta_controls_spec.js +++ b/spec/frontend/static_site_editor/components/edit_meta_controls_spec.js @@ -1,6 +1,5 @@ -import { shallowMount } from '@vue/test-utils'; - import { GlDropdown, GlDropdownItem, GlFormInput, GlFormTextarea } from '@gitlab/ui'; +import { shallowMount } from '@vue/test-utils'; import EditMetaControls from '~/static_site_editor/components/edit_meta_controls.vue'; diff --git a/spec/frontend/static_site_editor/components/edit_meta_modal_spec.js b/spec/frontend/static_site_editor/components/edit_meta_modal_spec.js index c7d0abee05c..3a336f6a230 100644 --- a/spec/frontend/static_site_editor/components/edit_meta_modal_spec.js +++ b/spec/frontend/static_site_editor/components/edit_meta_modal_spec.js @@ -1,12 +1,12 @@ -import { shallowMount } from '@vue/test-utils'; import { GlModal } from '@gitlab/ui'; -import { useLocalStorageSpy } from 'helpers/local_storage_helper'; +import { shallowMount } from '@vue/test-utils'; import MockAdapter from 'axios-mock-adapter'; +import { useLocalStorageSpy } from 'helpers/local_storage_helper'; import axios from '~/lib/utils/axios_utils'; -import LocalStorageSync from '~/vue_shared/components/local_storage_sync.vue'; -import EditMetaModal from '~/static_site_editor/components/edit_meta_modal.vue'; import EditMetaControls from '~/static_site_editor/components/edit_meta_controls.vue'; +import EditMetaModal from '~/static_site_editor/components/edit_meta_modal.vue'; import { MR_META_LOCAL_STORAGE_KEY } from '~/static_site_editor/constants'; +import LocalStorageSync from '~/vue_shared/components/local_storage_sync.vue'; import { sourcePath, mergeRequestMeta, diff --git a/spec/frontend/static_site_editor/components/front_matter_controls_spec.js b/spec/frontend/static_site_editor/components/front_matter_controls_spec.js index 8001f2fbd29..5fda3b40306 100644 --- a/spec/frontend/static_site_editor/components/front_matter_controls_spec.js +++ b/spec/frontend/static_site_editor/components/front_matter_controls_spec.js @@ -1,6 +1,6 @@ +import { GlFormGroup } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; -import { GlFormGroup } from '@gitlab/ui'; import { humanize } from '~/lib/utils/text_utility'; import FrontMatterControls from '~/static_site_editor/components/front_matter_controls.vue'; diff --git a/spec/frontend/static_site_editor/components/submit_changes_error_spec.js b/spec/frontend/static_site_editor/components/submit_changes_error_spec.js index 7af3014b338..82a5c5f624a 100644 --- a/spec/frontend/static_site_editor/components/submit_changes_error_spec.js +++ b/spec/frontend/static_site_editor/components/submit_changes_error_spec.js @@ -1,5 +1,5 @@ -import { shallowMount } from '@vue/test-utils'; import { GlButton, GlAlert } from '@gitlab/ui'; +import { shallowMount } from '@vue/test-utils'; import SubmitChangesError from '~/static_site_editor/components/submit_changes_error.vue'; diff --git a/spec/frontend/static_site_editor/graphql/resolvers/submit_content_changes_spec.js b/spec/frontend/static_site_editor/graphql/resolvers/submit_content_changes_spec.js index 750b777cf5d..a0529f5f945 100644 --- a/spec/frontend/static_site_editor/graphql/resolvers/submit_content_changes_spec.js +++ b/spec/frontend/static_site_editor/graphql/resolvers/submit_content_changes_spec.js @@ -1,6 +1,6 @@ import savedContentMetaQuery from '~/static_site_editor/graphql/queries/saved_content_meta.query.graphql'; -import submitContentChanges from '~/static_site_editor/services/submit_content_changes'; import submitContentChangesResolver from '~/static_site_editor/graphql/resolvers/submit_content_changes'; +import submitContentChanges from '~/static_site_editor/services/submit_content_changes'; import { projectId as project, diff --git a/spec/frontend/static_site_editor/pages/home_spec.js b/spec/frontend/static_site_editor/pages/home_spec.js index 3e488a950dc..0936ba3011c 100644 --- a/spec/frontend/static_site_editor/pages/home_spec.js +++ b/spec/frontend/static_site_editor/pages/home_spec.js @@ -1,15 +1,15 @@ import { shallowMount, createLocalVue } from '@vue/test-utils'; import { mockTracking, unmockTracking } from 'helpers/tracking_helper'; -import Home from '~/static_site_editor/pages/home.vue'; -import SkeletonLoader from '~/static_site_editor/components/skeleton_loader.vue'; import EditArea from '~/static_site_editor/components/edit_area.vue'; import EditMetaModal from '~/static_site_editor/components/edit_meta_modal.vue'; import InvalidContentMessage from '~/static_site_editor/components/invalid_content_message.vue'; +import SkeletonLoader from '~/static_site_editor/components/skeleton_loader.vue'; import SubmitChangesError from '~/static_site_editor/components/submit_changes_error.vue'; -import submitContentChangesMutation from '~/static_site_editor/graphql/mutations/submit_content_changes.mutation.graphql'; +import { TRACKING_ACTION_INITIALIZE_EDITOR } from '~/static_site_editor/constants'; import hasSubmittedChangesMutation from '~/static_site_editor/graphql/mutations/has_submitted_changes.mutation.graphql'; +import submitContentChangesMutation from '~/static_site_editor/graphql/mutations/submit_content_changes.mutation.graphql'; +import Home from '~/static_site_editor/pages/home.vue'; import { SUCCESS_ROUTE } from '~/static_site_editor/router/constants'; -import { TRACKING_ACTION_INITIALIZE_EDITOR } from '~/static_site_editor/constants'; import { project, diff --git a/spec/frontend/static_site_editor/pages/success_spec.js b/spec/frontend/static_site_editor/pages/success_spec.js index 3fc69dc4586..fbdc2c435a0 100644 --- a/spec/frontend/static_site_editor/pages/success_spec.js +++ b/spec/frontend/static_site_editor/pages/success_spec.js @@ -1,8 +1,8 @@ -import { shallowMount } from '@vue/test-utils'; import { GlButton, GlEmptyState, GlLoadingIcon } from '@gitlab/ui'; +import { shallowMount } from '@vue/test-utils'; import Success from '~/static_site_editor/pages/success.vue'; -import { savedContentMeta, returnUrl, sourcePath } from '../mock_data'; import { HOME_ROUTE } from '~/static_site_editor/router/constants'; +import { savedContentMeta, returnUrl, sourcePath } from '../mock_data'; describe('~/static_site_editor/pages/success.vue', () => { const mergeRequestsIllustrationPath = 'illustrations/merge_requests.svg'; diff --git a/spec/frontend/static_site_editor/services/front_matterify_spec.js b/spec/frontend/static_site_editor/services/front_matterify_spec.js index 866897f21ef..ec3752b30c6 100644 --- a/spec/frontend/static_site_editor/services/front_matterify_spec.js +++ b/spec/frontend/static_site_editor/services/front_matterify_spec.js @@ -1,3 +1,4 @@ +import { frontMatterify, stringify } from '~/static_site_editor/services/front_matterify'; import { sourceContentYAML as content, sourceContentHeaderObjYAML as yamlFrontMatterObj, @@ -5,8 +6,6 @@ import { sourceContentBody as body, } from '../mock_data'; -import { frontMatterify, stringify } from '~/static_site_editor/services/front_matterify'; - describe('static_site_editor/services/front_matterify', () => { const frontMatterifiedContent = { source: content, diff --git a/spec/frontend/static_site_editor/services/parse_source_file_spec.js b/spec/frontend/static_site_editor/services/parse_source_file_spec.js index ab9e63f4cd2..fdd11297e09 100644 --- a/spec/frontend/static_site_editor/services/parse_source_file_spec.js +++ b/spec/frontend/static_site_editor/services/parse_source_file_spec.js @@ -1,3 +1,4 @@ +import parseSourceFile from '~/static_site_editor/services/parse_source_file'; import { sourceContentYAML as content, sourceContentHeaderYAML as yamlFrontMatter, @@ -5,8 +6,6 @@ import { sourceContentBody as body, } from '../mock_data'; -import parseSourceFile from '~/static_site_editor/services/parse_source_file'; - describe('static_site_editor/services/parse_source_file', () => { const contentComplex = [content, content, content].join(''); const complexBody = [body, content, content].join(''); |