Skip to content

Commit

Permalink
clean tests
Browse files Browse the repository at this point in the history
  • Loading branch information
semd committed May 24, 2024
1 parent e3433d9 commit a5e9085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,11 @@ import { useCasesToast } from '../../../common/use_cases_toast';
import { alertComment } from '../../../containers/mock';
import { useCreateAttachments } from '../../../containers/use_create_attachments';
import { CasesContext } from '../../cases_context';
import {
CasesContextStoreActionsList,
getInitialCasesContextState,
} from '../../cases_context/state/cases_context_reducer';
import { CasesContextStoreActionsList } from '../../cases_context/state/cases_context_reducer';
import { ExternalReferenceAttachmentTypeRegistry } from '../../../client/attachment_framework/external_reference_registry';
import type { AddToExistingCaseModalProps } from './use_cases_add_to_existing_case_modal';
import { useCasesAddToExistingCaseModal } from './use_cases_add_to_existing_case_modal';
import { PersistableStateAttachmentTypeRegistry } from '../../../client/attachment_framework/persistable_state_registry';
import { BehaviorSubject } from 'rxjs';

jest.mock('../../../common/use_cases_toast');
jest.mock('../../../common/lib/kibana/use_application');
Expand Down Expand Up @@ -81,7 +77,6 @@ describe('use cases add to existing case modal hook', () => {
dispatch,
features: { alerts: { sync: true, enabled: true, isExperimental: false }, metrics: [] },
releasePhase: 'ga',
casesContextState$: new BehaviorSubject(getInitialCasesContextState()),
}}
>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ import { renderHook } from '@testing-library/react-hooks';
import type { FC, PropsWithChildren } from 'react';
import React from 'react';
import { CasesContext } from '../../cases_context';
import {
CasesContextStoreActionsList,
getInitialCasesContextState,
} from '../../cases_context/state/cases_context_reducer';
import { CasesContextStoreActionsList } from '../../cases_context/state/cases_context_reducer';
import { useCasesAddToNewCaseFlyout } from './use_cases_add_to_new_case_flyout';
import { allCasesPermissions } from '../../../common/mock';
import { ExternalReferenceAttachmentTypeRegistry } from '../../../client/attachment_framework/external_reference_registry';
import { PersistableStateAttachmentTypeRegistry } from '../../../client/attachment_framework/persistable_state_registry';
import { BehaviorSubject } from 'rxjs';

jest.mock('../../../common/use_cases_toast');

Expand All @@ -42,7 +38,6 @@ describe('use cases add to new case flyout hook', () => {
dispatch,
features: { alerts: { sync: true, enabled: true, isExperimental: false }, metrics: [] },
releasePhase: 'ga',
casesContextState$: new BehaviorSubject(getInitialCasesContextState()),
}}
>
{children}
Expand Down

0 comments on commit a5e9085

Please sign in to comment.