Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active October 3, 2018 13:24
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/8c2299f12c4721251d7fce92219279e1 to your computer and use it in GitHub Desktop.
Save productioncoder/8c2299f12c4721251d7fce92219279e1 to your computer and use it in GitHub Desktop.
Youtube Comment and AddComment snapshot tests
import React from 'react';
import {shallow} from 'enzyme';
import {AddComment} from '../AddComment';
describe('AddComment', () => {
test('AddComment renders correctly', () => {
const wrapper = shallow(
<AddComment/>
);
expect(wrapper).toMatchSnapshot();
});
});
import React from 'react';
import {shallow} from 'enzyme';
import {Comment} from '../Comment';
describe('Comment', () => {
test('renders Comment', () => {
const wrapper = shallow(<Comment/>);
expect(wrapper).toMatchSnapshot();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment