diff options
Diffstat (limited to 'spec/frontend/serverless')
10 files changed, 13 insertions, 13 deletions
diff --git a/spec/frontend/serverless/components/empty_state_spec.js b/spec/frontend/serverless/components/empty_state_spec.js index daa1576a4ec..d63882c2a6d 100644 --- a/spec/frontend/serverless/components/empty_state_spec.js +++ b/spec/frontend/serverless/components/empty_state_spec.js @@ -1,7 +1,7 @@ import { GlEmptyState, GlSprintf } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; -import { createStore } from '~/serverless/store'; import EmptyStateComponent from '~/serverless/components/empty_state.vue'; +import { createStore } from '~/serverless/store'; describe('EmptyStateComponent', () => { let wrapper; diff --git a/spec/frontend/serverless/components/environment_row_spec.js b/spec/frontend/serverless/components/environment_row_spec.js index a59b4fdbb7b..944283136d0 100644 --- a/spec/frontend/serverless/components/environment_row_spec.js +++ b/spec/frontend/serverless/components/environment_row_spec.js @@ -1,8 +1,8 @@ import { shallowMount } from '@vue/test-utils'; import environmentRowComponent from '~/serverless/components/environment_row.vue'; -import { mockServerlessFunctions, mockServerlessFunctionsDiffEnv } from '../mock_data'; import { translate } from '~/serverless/utils'; +import { mockServerlessFunctions, mockServerlessFunctionsDiffEnv } from '../mock_data'; const createComponent = (env, envName) => shallowMount(environmentRowComponent, { diff --git a/spec/frontend/serverless/components/function_details_spec.js b/spec/frontend/serverless/components/function_details_spec.js index 248dd418941..d2b8de71e01 100644 --- a/spec/frontend/serverless/components/function_details_spec.js +++ b/spec/frontend/serverless/components/function_details_spec.js @@ -1,6 +1,6 @@ +import { createLocalVue, shallowMount } from '@vue/test-utils'; import Vuex from 'vuex'; -import { createLocalVue, shallowMount } from '@vue/test-utils'; import functionDetailsComponent from '~/serverless/components/function_details.vue'; import { createStore } from '~/serverless/store'; diff --git a/spec/frontend/serverless/components/functions_spec.js b/spec/frontend/serverless/components/functions_spec.js index 0fca027fe56..01dd512c5d3 100644 --- a/spec/frontend/serverless/components/functions_spec.js +++ b/spec/frontend/serverless/components/functions_spec.js @@ -1,13 +1,13 @@ -import Vuex from 'vuex'; import { GlLoadingIcon } from '@gitlab/ui'; -import AxiosMockAdapter from 'axios-mock-adapter'; import { createLocalVue, shallowMount } from '@vue/test-utils'; +import AxiosMockAdapter from 'axios-mock-adapter'; +import Vuex from 'vuex'; import { TEST_HOST } from 'helpers/test_constants'; import axios from '~/lib/utils/axios_utils'; -import functionsComponent from '~/serverless/components/functions.vue'; -import { createStore } from '~/serverless/store'; import EmptyState from '~/serverless/components/empty_state.vue'; import EnvironmentRow from '~/serverless/components/environment_row.vue'; +import functionsComponent from '~/serverless/components/functions.vue'; +import { createStore } from '~/serverless/store'; import { mockServerlessFunctions } from '../mock_data'; describe('functionsComponent', () => { diff --git a/spec/frontend/serverless/components/missing_prometheus_spec.js b/spec/frontend/serverless/components/missing_prometheus_spec.js index ffdb1f13111..d5b187452c6 100644 --- a/spec/frontend/serverless/components/missing_prometheus_spec.js +++ b/spec/frontend/serverless/components/missing_prometheus_spec.js @@ -1,7 +1,7 @@ import { GlButton } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; -import { createStore } from '~/serverless/store'; import missingPrometheusComponent from '~/serverless/components/missing_prometheus.vue'; +import { createStore } from '~/serverless/store'; describe('missingPrometheusComponent', () => { let wrapper; diff --git a/spec/frontend/serverless/components/url_spec.js b/spec/frontend/serverless/components/url_spec.js index c43933e5b94..8c839577aa0 100644 --- a/spec/frontend/serverless/components/url_spec.js +++ b/spec/frontend/serverless/components/url_spec.js @@ -1,5 +1,5 @@ -import Vue from 'vue'; import { shallowMount } from '@vue/test-utils'; +import Vue from 'vue'; import urlComponent from '~/serverless/components/url.vue'; import ClipboardButton from '~/vue_shared/components/clipboard_button.vue'; diff --git a/spec/frontend/serverless/store/actions_spec.js b/spec/frontend/serverless/store/actions_spec.js index 32e30a57d4b..61b9bd121af 100644 --- a/spec/frontend/serverless/store/actions_spec.js +++ b/spec/frontend/serverless/store/actions_spec.js @@ -1,9 +1,9 @@ import MockAdapter from 'axios-mock-adapter'; import testAction from 'helpers/vuex_action_helper'; +import axios from '~/lib/utils/axios_utils'; import statusCodes from '~/lib/utils/http_status'; import { fetchFunctions, fetchMetrics } from '~/serverless/store/actions'; import { mockServerlessFunctions, mockMetrics } from '../mock_data'; -import axios from '~/lib/utils/axios_utils'; import { adjustMetricQuery } from '../utils'; describe('ServerlessActions', () => { diff --git a/spec/frontend/serverless/store/getters_spec.js b/spec/frontend/serverless/store/getters_spec.js index 92853fda37c..e1942bd2759 100644 --- a/spec/frontend/serverless/store/getters_spec.js +++ b/spec/frontend/serverless/store/getters_spec.js @@ -1,5 +1,5 @@ -import serverlessState from '~/serverless/store/state'; import * as getters from '~/serverless/store/getters'; +import serverlessState from '~/serverless/store/state'; import { mockServerlessFunctions } from '../mock_data'; describe('Serverless Store Getters', () => { diff --git a/spec/frontend/serverless/store/mutations_spec.js b/spec/frontend/serverless/store/mutations_spec.js index e2771c7e5fd..a1a8f9a2ca7 100644 --- a/spec/frontend/serverless/store/mutations_spec.js +++ b/spec/frontend/serverless/store/mutations_spec.js @@ -1,5 +1,5 @@ -import mutations from '~/serverless/store/mutations'; import * as types from '~/serverless/store/mutation_types'; +import mutations from '~/serverless/store/mutations'; import { mockServerlessFunctions, mockMetrics } from '../mock_data'; describe('ServerlessMutations', () => { diff --git a/spec/frontend/serverless/survey_banner_spec.js b/spec/frontend/serverless/survey_banner_spec.js index 29b36fb9b5f..4682c2328c3 100644 --- a/spec/frontend/serverless/survey_banner_spec.js +++ b/spec/frontend/serverless/survey_banner_spec.js @@ -1,6 +1,6 @@ +import { GlBanner } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; import Cookies from 'js-cookie'; -import { GlBanner } from '@gitlab/ui'; import SurveyBanner from '~/serverless/survey_banner.vue'; describe('Knative survey banner', () => { |