Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created September 29, 2018 13:46
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/1ad4ee7026a539e766949067012bd3a5 to your computer and use it in GitHub Desktop.
Save productioncoder/1ad4ee7026a539e766949067012bd3a5 to your computer and use it in GitHub Desktop.
Tests for Rating component
import React from 'react';
import {shallow} from 'enzyme';
import {Rating} from '../Rating';
describe('Rating', () => {
test('renders', () => {
const wrapper = shallow(<Rating/>);
expect(wrapper).toMatchSnapshot();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment