diff options
Diffstat (limited to 'spec/frontend/monitoring/components/dashboard_panel_spec.js')
-rw-r--r-- | spec/frontend/monitoring/components/dashboard_panel_spec.js | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/spec/frontend/monitoring/components/dashboard_panel_spec.js b/spec/frontend/monitoring/components/dashboard_panel_spec.js index f64e05d3a2c..a72dbbd0f41 100644 --- a/spec/frontend/monitoring/components/dashboard_panel_spec.js +++ b/spec/frontend/monitoring/components/dashboard_panel_spec.js @@ -1,13 +1,32 @@ -import Vuex from 'vuex'; +import { GlDropdownItem } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; import AxiosMockAdapter from 'axios-mock-adapter'; +import Vuex from 'vuex'; import { setTestTimeout } from 'helpers/timeout'; -import { GlDropdownItem } from '@gitlab/ui'; -import invalidUrl from '~/lib/utils/invalid_url'; import axios from '~/lib/utils/axios_utils'; +import invalidUrl from '~/lib/utils/invalid_url'; import AlertWidget from '~/monitoring/components/alert_widget.vue'; +import MonitorAnomalyChart from '~/monitoring/components/charts/anomaly.vue'; +import MonitorBarChart from '~/monitoring/components/charts/bar.vue'; +import MonitorColumnChart from '~/monitoring/components/charts/column.vue'; +import MonitorEmptyChart from '~/monitoring/components/charts/empty_chart.vue'; +import MonitorHeatmapChart from '~/monitoring/components/charts/heatmap.vue'; +import MonitorSingleStatChart from '~/monitoring/components/charts/single_stat.vue'; +import MonitorStackedColumnChart from '~/monitoring/components/charts/stacked_column.vue'; +import MonitorTimeSeriesChart from '~/monitoring/components/charts/time_series.vue'; import DashboardPanel from '~/monitoring/components/dashboard_panel.vue'; +import { panelTypes } from '~/monitoring/constants'; + +import { createStore, monitoringDashboard } from '~/monitoring/stores'; +import { createStore as createEmbedGroupStore } from '~/monitoring/stores/embed_group'; +import { dashboardProps, graphData, graphDataEmpty } from '../fixture_data'; +import { + anomalyGraphData, + singleStatGraphData, + heatmapGraphData, + barGraphData, +} from '../graph_data'; import { mockAlert, mockLogsHref, @@ -16,27 +35,6 @@ import { mockNamespacedData, mockTimeRange, } from '../mock_data'; -import { dashboardProps, graphData, graphDataEmpty } from '../fixture_data'; -import { - anomalyGraphData, - singleStatGraphData, - heatmapGraphData, - barGraphData, -} from '../graph_data'; - -import { panelTypes } from '~/monitoring/constants'; - -import MonitorEmptyChart from '~/monitoring/components/charts/empty_chart.vue'; -import MonitorTimeSeriesChart from '~/monitoring/components/charts/time_series.vue'; -import MonitorAnomalyChart from '~/monitoring/components/charts/anomaly.vue'; -import MonitorSingleStatChart from '~/monitoring/components/charts/single_stat.vue'; -import MonitorHeatmapChart from '~/monitoring/components/charts/heatmap.vue'; -import MonitorColumnChart from '~/monitoring/components/charts/column.vue'; -import MonitorBarChart from '~/monitoring/components/charts/bar.vue'; -import MonitorStackedColumnChart from '~/monitoring/components/charts/stacked_column.vue'; - -import { createStore, monitoringDashboard } from '~/monitoring/stores'; -import { createStore as createEmbedGroupStore } from '~/monitoring/stores/embed_group'; const mocks = { $toast: { |