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

17 lines
417 B
TypeScript
Raw Normal View History

2019-01-03 16:00:55 +03:00
import React from 'react';
import { render } from '@testing-library/react';
2019-01-03 16:00:55 +03:00
import { Container } from '../src';
describe('Container', function () {
2019-01-03 16:00:55 +03:00
it('renders correctly', () => {
const { container } = 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(container.firstChild).toMatchSnapshot();
2019-01-03 16:00:55 +03:00
});
});