mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-18 21:43:49 +00:00
Added proper blurred background for modals
This commit is contained in:
committed by
Alejandro Celaya
parent
e7466ced18
commit
f97ef8df83
@@ -1,9 +1,10 @@
|
||||
import { shallow, ShallowWrapper } from 'enzyme';
|
||||
import { Modal, ModalBody, ModalFooter, ModalHeader } from 'reactstrap';
|
||||
import { 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;
|
||||
@@ -27,7 +28,7 @@ describe('<DeleteServerModal />', () => {
|
||||
afterEach(jest.clearAllMocks);
|
||||
|
||||
it('renders a modal window', () => {
|
||||
expect(wrapper.find(Modal)).toHaveLength(1);
|
||||
expect(wrapper.find(BlurredModal)).toHaveLength(1);
|
||||
expect(wrapper.find(ModalHeader)).toHaveLength(1);
|
||||
expect(wrapper.find(ModalBody)).toHaveLength(1);
|
||||
expect(wrapper.find(ModalFooter)).toHaveLength(1);
|
||||
|
||||
Reference in New Issue
Block a user