mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
19 lines
391 B
JavaScript
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();
|
|
});
|
|
});
|