quilt-lens-component
Version:
Lens for images and vidoes
11 lines (10 loc) • 401 B
JSX
import React from 'react';
import { render } from 'react-testing-library';
import Lens from '../../lib/Lens';
describe('Lens', () => {
it('Should render lens component with video', async () => {
const component = render(<Lens video={true} source="https://www.youtube.com/watch?v=v-I7bwvmnfg" />);
expect(component.getByTestId('video-player')).toBeDefined;
component.unmount();
});
});