mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-29 13:03:55 +03:00
57ec0534b2
* Replace enzyme with React testing library in ui * Mock Math.random()
17 lines
417 B
TypeScript
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();
|
|
});
|
|
});
|