redux-devtools/packages/devui/tests/Container.test.tsx
Nathan Bierema 727d753081
feature(devui): convert to TypeScript (#629)
* stash

* and those

* stash

* stash

* stash

* stash

* tests

* fix errors

* revert

* stash

* fix lint

* prettier
2020-09-09 10:35:22 -04:00

18 lines
443 B
TypeScript

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', light: false }}
>
Text
</Container>
);
expect(renderToJson(wrapper)).toMatchSnapshot();
});
});