Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created September 23, 2018 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/e6ba7397907f9abf9a3f97a0d15a33f0 to your computer and use it in GitHub Desktop.
Save productioncoder/e6ba7397907f9abf9a3f97a0d15a33f0 to your computer and use it in GitHub Desktop.
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