Skip to content

Instantly share code, notes, and snippets.

Embed
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/>);
expect(wrapper).toMatchSnapshot();
});
test('renders horizontally', () => {
const wrapper = shallow(<VideoPreview horizontal={true}/>);
expect(wrapper).toMatchSnapshot();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.