redux-devtools/packages/redux-devtools-ui/tests/Container.test.tsx
Nathan Bierema 57ec0534b2
Replace enzyme with React testing library in ui (#917)
* Replace enzyme with React testing library in ui

* Mock Math.random()
2021-10-22 04:18:03 +00:00

17 lines
417 B
TypeScript

import React from 'react';
import { render } from '@testing-library/react';
import { Container } from '../src';
describe('Container', function () {
it('renders correctly', () => {
const { container } = render(
<Container
themeData={{ theme: 'default', scheme: 'default', light: false }}
>
Text
</Container>
);
expect(container.firstChild).toMatchSnapshot();
});
});