UNPKG

321 BJavaScriptView Raw
1import React from 'react';
2import { render, cleanup } from '@testing-library/react';
3import { FilePicker } from '..';
4
5afterEach(cleanup);
6
7describe('Upload', () => {
8 test('should render', () => {
9 const { container } = render(<FilePicker onChange={() => {}} />);
10
11 expect(container).toMatchSnapshot();
12 });
13});
14
\No newline at end of file