ant-design/components/drawer/__tests__/Drawer.test.js
2018-07-22 11:55:46 +08:00

19 lines
391 B
JavaScript

import React from 'react';
import { mount } from 'enzyme';
import Drawer from '..';
describe('Drawer', () => {
it('destroyOnClose is true', () => {
const wrapper = mount(
<Drawer
destroyOnClose
visible={false}
getContainer={false}
>
Here is content of Drawer
</Drawer>
);
expect(wrapper.render()).toMatchSnapshot();
});
});