diff options
Diffstat (limited to 'spec/frontend/analytics/instance_statistics/components/projects_and_groups_chart_spec.js')
-rw-r--r-- | spec/frontend/analytics/instance_statistics/components/projects_and_groups_chart_spec.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/spec/frontend/analytics/instance_statistics/components/projects_and_groups_chart_spec.js b/spec/frontend/analytics/instance_statistics/components/projects_and_groups_chart_spec.js index bf94e476ea3..bbfc65f19b1 100644 --- a/spec/frontend/analytics/instance_statistics/components/projects_and_groups_chart_spec.js +++ b/spec/frontend/analytics/instance_statistics/components/projects_and_groups_chart_spec.js @@ -1,15 +1,14 @@ -import { createLocalVue, shallowMount } from '@vue/test-utils'; -import { GlLineChart } from '@gitlab/ui/dist/charts'; import { GlAlert } from '@gitlab/ui'; +import { GlLineChart } from '@gitlab/ui/dist/charts'; +import { createLocalVue, shallowMount } from '@vue/test-utils'; import VueApollo from 'vue-apollo'; import createMockApollo from 'helpers/mock_apollo_helper'; -import { useFakeDate } from 'helpers/fake_date'; import ProjectsAndGroupChart from '~/analytics/instance_statistics/components/projects_and_groups_chart.vue'; -import ChartSkeletonLoader from '~/vue_shared/components/resizable_chart/skeleton_loader.vue'; -import projectsQuery from '~/analytics/instance_statistics/graphql/queries/projects.query.graphql'; import groupsQuery from '~/analytics/instance_statistics/graphql/queries/groups.query.graphql'; -import { mockCountsData2, roundedSortedCountsMonthlyChartData2 } from '../mock_data'; +import projectsQuery from '~/analytics/instance_statistics/graphql/queries/projects.query.graphql'; +import ChartSkeletonLoader from '~/vue_shared/components/resizable_chart/skeleton_loader.vue'; import { mockQueryResponse } from '../apollo_mock_data'; +import { mockCountsData2, roundedSortedCountsMonthlyChartData2 } from '../mock_data'; const localVue = createLocalVue(); localVue.use(VueApollo); @@ -45,8 +44,8 @@ describe('ProjectsAndGroupChart', () => { return shallowMount(ProjectsAndGroupChart, { props: { - startDate: useFakeDate(2020, 9, 26), - endDate: useFakeDate(2020, 10, 1), + startDate: new Date(2020, 9, 26), + endDate: new Date(2020, 10, 1), totalDataPoints: mockCountsData2.length, }, localVue, |