Rolled-back blurred modal

This commit is contained in:
Alejandro Celaya
2021-02-27 08:52:10 +01:00
parent 3cd30b61e4
commit 2553b27d7d
20 changed files with 43 additions and 79 deletions

View File

@@ -1,10 +1,9 @@
import { shallow, ShallowWrapper } from 'enzyme';
import { ModalBody, ModalFooter, ModalHeader } from 'reactstrap';
import { Modal, ModalBody, ModalFooter, ModalHeader } from 'reactstrap';
import { History } from 'history';
import { Mock } from 'ts-mockery';
import DeleteServerModal from '../../src/servers/DeleteServerModal';
import { ServerWithId } from '../../src/servers/data';
import { BlurredModal } from '../../src/utils/BlurredModal';
describe('<DeleteServerModal />', () => {
let wrapper: ShallowWrapper;
@@ -28,7 +27,7 @@ describe('<DeleteServerModal />', () => {
afterEach(jest.clearAllMocks);
it('renders a modal window', () => {
expect(wrapper.find(BlurredModal)).toHaveLength(1);
expect(wrapper.find(Modal)).toHaveLength(1);
expect(wrapper.find(ModalHeader)).toHaveLength(1);
expect(wrapper.find(ModalBody)).toHaveLength(1);
expect(wrapper.find(ModalFooter)).toHaveLength(1);