Created
September 23, 2018 12:05
-
-
Save productioncoder/e6ba7397907f9abf9a3f97a0d15a33f0 to your computer and use it in GitHub Desktop.
Update Youtube VideoPreview component tests for horizontal mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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