Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created October 14, 2018 16:42
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/a47de633c16b0974abd137b6ccb122d1 to your computer and use it in GitHub Desktop.
Save productioncoder/a47de633c16b0974abd137b6ccb122d1 to your computer and use it in GitHub Desktop.
Youtube HomeContent snapshot test
import {shallow} from 'enzyme';
import {HomeContent} from '../HomeContent';
import React from 'react';
describe('HomeContent', () => {
test('renders', () => {
const wrapper = shallow(<HomeContent/>);
expect(wrapper).toMatchSnapshot();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment