Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tests for VideoMetadata
import React from 'react';
import {shallow} from 'enzyme';
import {VideoMetadata} from '../VideoMetadata';
describe('VideoMetadata', () => {
test('renders without props', () => {
const wrapper = shallow(<VideoMetadata/>);
expect(wrapper).toMatchSnapshot();
});
test('renders with view count', () => {
const wrapper = shallow(<VideoMetadata viewCount={100234}/>);
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.