1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-16 00:00:06 +02:00
copilot/packages/cp-frontend/test/unit/components/manifest/files.js
Sérgio Ramos 19b1176435 style: lint
2017-09-07 16:29:41 +01:00

28 lines
573 B
JavaScript

/**
* @jest-environment jsdom
*/
import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import { Store, files } from '../../mocks';
import { Files } from '@components/manifest';
it('renders <Files /> without throwing', () => {
const tree = renderer
.create(
<Store>
<Files
files={files}
id="test"
name="test"
value="test"
onRemoveFile={() => {}}
readOnly
/>
</Store>
)
.toJSON();
expect(tree).toMatchSnapshot();
});