Skip to content

Instantly share code, notes, and snippets.

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