redux-devtools/packages/devui/tests/Container.test.tsx

18 lines
443 B
TypeScript
Raw Normal View History

2019-01-03 16:00:55 +03:00
import React from 'react';
import { render } from 'enzyme';
import { renderToJson } from 'enzyme-to-json';
import { Container } from '../src';
describe('Container', function () {
2019-01-03 16:00:55 +03:00
it('renders correctly', () => {
const wrapper = render(
2019-01-10 21:51:14 +03:00
<Container
themeData={{ theme: 'default', scheme: 'default', light: false }}
2019-01-10 21:51:14 +03:00
>
2019-01-03 16:00:55 +03:00
Text
</Container>
);
expect(renderToJson(wrapper)).toMatchSnapshot();
});
});