diff --git a/src/components/AdvanceAnalyticsV2/data/utils.js b/src/components/AdvanceAnalyticsV2/data/utils.js index 5c68827b6..a17b9bd7c 100644 --- a/src/components/AdvanceAnalyticsV2/data/utils.js +++ b/src/components/AdvanceAnalyticsV2/data/utils.js @@ -3,10 +3,10 @@ import { sum } from 'lodash'; import utc from 'dayjs/plugin/utc'; import quarterOfYear from 'dayjs/plugin/quarterOfYear'; import { CHART_TYPES, CALCULATION } from './constants'; +import messages from '../messages'; dayjs.extend(utc); dayjs.extend(quarterOfYear); -import messages from '../messages'; const simulateURL = (activeTab, chartType) => { if (!Object.values(CHART_TYPES).includes(chartType)) { diff --git a/src/components/AdvanceAnalyticsV2/data/utils.test.js b/src/components/AdvanceAnalyticsV2/data/utils.test.js index abaefbb75..b0f6713f2 100644 --- a/src/components/AdvanceAnalyticsV2/data/utils.test.js +++ b/src/components/AdvanceAnalyticsV2/data/utils.test.js @@ -1,6 +1,7 @@ // Jest test for utils.js -import { applyCalculation, applyGranularity } from './utils'; +import { createIntl } from '@edx/frontend-platform/i18n'; +import { applyCalculation, applyGranularity, constructChartHoverTemplate } from './utils'; import { CALCULATION, GRANULARITY } from './constants'; describe('utils', () => { @@ -201,8 +202,6 @@ describe('utils', () => { }); }); }); -import { createIntl } from '@edx/frontend-platform/i18n'; -import { constructChartHoverTemplate } from './utils'; describe('constructChartHoverTemplate', () => { const intl = createIntl({ diff --git a/src/components/AdvanceAnalyticsV2/tabs/Enrollments.jsx b/src/components/AdvanceAnalyticsV2/tabs/Enrollments.jsx index 32343e603..357d083d2 100644 --- a/src/components/AdvanceAnalyticsV2/tabs/Enrollments.jsx +++ b/src/components/AdvanceAnalyticsV2/tabs/Enrollments.jsx @@ -9,10 +9,9 @@ import AnalyticsTable from './AnalyticsTable'; import ChartWrapper from '../charts/ChartWrapper'; import { useEnterpriseEnrollmentsData } from '../data/hooks'; import DownloadCSVButton from '../DownloadCSVButton'; -import { modifyDataToIntroduceEnrollTypeCount } from '../data/utils'; +import { modifyDataToIntroduceEnrollTypeCount, constructChartHoverTemplate } from '../data/utils'; dayjs.extend(utc); -import { constructChartHoverTemplate } from '../data/utils'; const Enrollments = ({ startDate, endDate, granularity, calculation, enterpriseId,