import React from 'react'; import { render } from '@testing-library/react'; import FilePreview from './FilePreview'; it('renders FilePreview unchanged', () => { const { container } = render( ); expect(container).toMatchSnapshot(); }); it('renders FilePreview with one file', () => { const { container } = render( ); expect(container).toMatchSnapshot(); }); it('renders FilePreview with two files', () => { const { container } = render( ); expect(container).toMatchSnapshot(); });