Skip to content

Commit f87faf5

Browse files
wip
1 parent a38248a commit f87faf5

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

ui/components/app/alert-system/alert-modal/alert-modal.test.tsx

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
import React from 'react';
21
import { fireEvent } from '@testing-library/react';
2+
import React from 'react';
33
import configureMockStore from 'redux-mock-store';
4-
import { Severity } from '../../../../helpers/constants/design-system';
5-
import { renderWithProvider } from '../../../../../test/lib/render-helpers';
6-
import * as useAlertsModule from '../../../../hooks/useAlerts';
4+
import {
5+
BlockaidReason,
6+
SecurityProvider,
7+
} from '../../../../../shared/constants/security-provider';
78
import mockState from '../../../../../test/data/mock-state.json';
9+
import { tEn } from '../../../../../test/lib/i18n-helpers';
10+
import { renderWithProvider } from '../../../../../test/lib/render-helpers';
811
import { Alert } from '../../../../ducks/confirm-alerts/confirm-alerts';
12+
import { Severity } from '../../../../helpers/constants/design-system';
13+
import * as useAlertsModule from '../../../../hooks/useAlerts';
14+
import { useConfirmContext } from '../../../../pages/confirmations/context/confirm';
915
import { AlertModal } from './alert-modal';
10-
import { BlockaidReason } from '../../../../../shared/constants/security-provider';
11-
import { SecurityProvider } from '../../../../../shared/constants/security-provider';
12-
import { tEn } from '../../../../../test/lib/i18n-helpers';
1316

1417
const onProcessActionMock = jest.fn();
1518

@@ -307,10 +310,6 @@ describe('AlertModal', () => {
307310
});
308311

309312
describe('BlockaidAlertDetails', () => {
310-
const {
311-
useConfirmContext,
312-
} = require('../../../../pages/confirmations/context/confirm');
313-
314313
beforeEach(() => {
315314
jest.clearAllMocks();
316315
});

0 commit comments

Comments
 (0)