|
1 |
| -import React from 'react'; |
2 | 1 | import { fireEvent } from '@testing-library/react';
|
| 2 | +import React from 'react'; |
3 | 3 | 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'; |
7 | 8 | import mockState from '../../../../../test/data/mock-state.json';
|
| 9 | +import { tEn } from '../../../../../test/lib/i18n-helpers'; |
| 10 | +import { renderWithProvider } from '../../../../../test/lib/render-helpers'; |
8 | 11 | 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'; |
9 | 15 | 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'; |
13 | 16 |
|
14 | 17 | const onProcessActionMock = jest.fn();
|
15 | 18 |
|
@@ -307,10 +310,6 @@ describe('AlertModal', () => {
|
307 | 310 | });
|
308 | 311 |
|
309 | 312 | describe('BlockaidAlertDetails', () => {
|
310 |
| - const { |
311 |
| - useConfirmContext, |
312 |
| - } = require('../../../../pages/confirmations/context/confirm'); |
313 |
| - |
314 | 313 | beforeEach(() => {
|
315 | 314 | jest.clearAllMocks();
|
316 | 315 | });
|
|
0 commit comments