Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Update Youtube VideoPreview component tests for horizontal mode
import React from 'react';
import {shallow} from 'enzyme';
import {VideoPreview} from '../VideoPreview';
describe('VideoPreview', () => {
test('renders vertically', () => {
const wrapper = shallow(<VideoPreview/>);
test('renders horizontally', () => {
const wrapper = shallow(<VideoPreview horizontal={true}/>);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment