import React from 'react'; import { render } from 'enzyme'; import Drawer from '..'; describe('Drawer', () => { it('render correctly', () => { const wrapper = render( Here is content of Drawer , ); expect(wrapper).toMatchSnapshot(); }); it('render top drawer', () => { const wrapper = render( Here is content of Drawer , ); expect(wrapper).toMatchSnapshot(); }); it('have a title', () => { const wrapper = render( Here is content of Drawer , ); expect(wrapper).toMatchSnapshot(); }); it('closable is false', () => { const wrapper = render( Here is content of Drawer , ); expect(wrapper).toMatchSnapshot(); }); it('destroyOnClose is true', () => { const wrapper = render( Here is content of Drawer , ); expect(wrapper).toMatchSnapshot(); }); it('className is test_drawer', () => { const wrapper = render( Here is content of Drawer , ); expect(wrapper).toMatchSnapshot(); }); });