Skip to content

Commit

Permalink
rename fixtures to data for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelemme committed Jan 27, 2023
1 parent f48a3e9 commit 6cd5d91
Show file tree
Hide file tree
Showing 21 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import userEvent from '@testing-library/user-event';
import { wait } from '@testing-library/user-event/dist/utils';
import React from 'react';

import { emptySloList } from '../../../fixtures/slo/slo';
import { emptySloList } from '../../../data/slo/slo';
import { useFetchSloList } from '../../../hooks/slo/use_fetch_slo_list';
import { render } from '../../../utils/test_helper';
import { SloSelector } from './slo_selector';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { HistoricalSummaryResponse } from '@kbn/slo-schema';
import {
HEALTHY_ROLLING_SLO,
historicalSummaryData,
} from '../../../fixtures/slo/historical_summary_data';
} from '../../../data/slo/historical_summary_data';
import { UseFetchHistoricalSummaryResponse, Params } from '../use_fetch_historical_summary';

export const useFetchHistoricalSummary = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { sloList } from '../../../fixtures/slo/slo';
import { sloList } from '../../../data/slo/slo';
import { UseFetchSloListResponse } from '../use_fetch_slo_list';

export const useFetchSloList = (): UseFetchSloListResponse => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import React from 'react';
import { ComponentStory } from '@storybook/react';

import { buildSlo } from '../../../fixtures/slo/slo';
import { buildSlo } from '../../../data/slo/slo';
import { SloDetails as Component, Props } from './slo_details';

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useLicense } from '../../hooks/use_license';
import { useFetchSloDetails } from '../../hooks/slo/use_fetch_slo_details';
import { render } from '../../utils/test_helper';
import { SloDetailsPage } from '.';
import { buildSlo } from '../../fixtures/slo/slo';
import { buildSlo } from '../../data/slo/slo';
import type { ConfigSchema } from '../../plugin';
import type { Subset } from '../../typings';
import { paths } from '../../config';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { kibanaStartMock } from '../../utils/kibana_react.mock';
import { ConfigSchema } from '../../plugin';
import { Subset } from '../../typings';
import { SLO_EDIT_FORM_DEFAULT_VALUES } from './constants';
import { buildSlo } from '../../fixtures/slo/slo';
import { buildSlo } from '../../data/slo/slo';
import { paths } from '../../config';
import { SloEditPage } from '.';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import React from 'react';
import { ComponentStory } from '@storybook/react';

import { buildForecastedSlo } from '../../../../fixtures/slo/slo';
import { buildForecastedSlo } from '../../../../data/slo/slo';
import { KibanaReactStorybookDecorator } from '../../../../utils/kibana_react.storybook_decorator';
import { SloBadges as Component, Props } from './slo_badges';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import {
buildCustomKqlIndicator,
buildApmAvailabilityIndicator,
buildApmLatencyIndicator,
} from '../../../../fixtures/slo/indicator';
} from '../../../../data/slo/indicator';
import { KibanaReactStorybookDecorator } from '../../../../utils/kibana_react.storybook_decorator';
import { SloIndicatorTypeBadge as Component, Props } from './slo_indicator_type_badge';
import { buildSlo } from '../../../../fixtures/slo/slo';
import { buildSlo } from '../../../../data/slo/slo';

export default {
component: Component,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ComponentStory } from '@storybook/react';

import { KibanaReactStorybookDecorator } from '../../../../utils/kibana_react.storybook_decorator';
import { SloStatusBadge as Component, SloStatusProps } from './slo_status_badge';
import { buildSlo } from '../../../../fixtures/slo/slo';
import { buildSlo } from '../../../../data/slo/slo';

export default {
component: Component,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ComponentStory } from '@storybook/react';

import { KibanaReactStorybookDecorator } from '../../../../utils/kibana_react.storybook_decorator';
import { SloTimeWindowBadge as Component, Props } from './slo_time_window_badge';
import { buildSlo } from '../../../../fixtures/slo/slo';
import { buildSlo } from '../../../../data/slo/slo';

export default {
component: Component,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
SloDeleteConfirmationModal as Component,
SloDeleteConfirmationModalProps,
} from './slo_delete_confirmation_modal';
import { buildSlo } from '../../../fixtures/slo/slo';
import { buildSlo } from '../../../data/slo/slo';

export default {
component: Component,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { ComponentStory } from '@storybook/react';
import {
HEALTHY_ROLLING_SLO,
historicalSummaryData,
} from '../../../fixtures/slo/historical_summary_data';
import { buildSlo } from '../../../fixtures/slo/slo';
} from '../../../data/slo/historical_summary_data';
import { buildSlo } from '../../../data/slo/slo';
import { KibanaReactStorybookDecorator } from '../../../utils/kibana_react.storybook_decorator';
import { SloListItem as Component, SloListItemProps } from './slo_list_item';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ComponentStory } from '@storybook/react';

import { KibanaReactStorybookDecorator } from '../../../utils/kibana_react.storybook_decorator';
import { SloListItems as Component, Props } from './slo_list_items';
import { sloList } from '../../../fixtures/slo/slo';
import { sloList } from '../../../data/slo/slo';

export default {
component: Component,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
historicalSummaryData,
DEGRADING_FAST_ROLLING_SLO,
NO_DATA_TO_HEALTHY_ROLLING_SLO,
} from '../../../fixtures/slo/historical_summary_data';
} from '../../../data/slo/historical_summary_data';
import { KibanaReactStorybookDecorator } from '../../../utils/kibana_react.storybook_decorator';
import { SloSparkline as Component, Props } from './slo_sparkline';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { KibanaReactStorybookDecorator } from '../../../utils/kibana_react.story
import {
HEALTHY_ROLLING_SLO,
historicalSummaryData,
} from '../../../fixtures/slo/historical_summary_data';
import { buildSlo } from '../../../fixtures/slo/slo';
} from '../../../data/slo/historical_summary_data';
import { buildSlo } from '../../../data/slo/slo';
import { SloSummary as Component, Props } from './slo_summary';

export default {
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/observability/public/pages/slos/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import { useFetchSloList } from '../../hooks/slo/use_fetch_slo_list';
import { useFetchHistoricalSummary } from '../../hooks/slo/use_fetch_historical_summary';
import { useLicense } from '../../hooks/use_license';
import { SlosPage } from '.';
import { emptySloList, sloList } from '../../fixtures/slo/slo';
import { emptySloList, sloList } from '../../data/slo/slo';
import type { ConfigSchema } from '../../plugin';
import type { Subset } from '../../typings';
import { chartPluginMock } from '@kbn/charts-plugin/public/mocks';
import { historicalSummaryData } from '../../fixtures/slo/historical_summary_data';
import { historicalSummaryData } from '../../data/slo/historical_summary_data';

jest.mock('react-router-dom', () => ({
...jest.requireActual('react-router-dom'),
Expand Down

0 comments on commit 6cd5d91

Please sign in to comment.