Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.