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

16 lines
429 B
JavaScript
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 () {
it('renders correctly', () => {
const wrapper = render(
<Container themeData={{ theme: 'default', scheme: 'default', invert: false }}>
Text
</Container>
);
expect(renderToJson(wrapper)).toMatchSnapshot();
});
});