Skip to content

Instantly share code, notes, and snippets.

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/>);
test('renders with view count', () => {
const wrapper = shallow(<VideoMetadata viewCount={100234}/>);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment