Skip to content

Instantly share code, notes, and snippets.

@fakiolinho
Created March 13, 2018 10:07
Show Gist options
  • Select an option

  • Save fakiolinho/00118b0085d93304f11b3d1d7faedd3f to your computer and use it in GitHub Desktop.

Select an option

Save fakiolinho/00118b0085d93304f11b3d1d7faedd3f to your computer and use it in GitHub Desktop.
import React from 'react';
import { shallow } from 'enzyme';
import Card from './';
describe('test Card component', () => {
it('should render the component', () => {
const enzymeWrapper = shallow(<Card />);
expect(enzymeWrapper).toHaveLength(1);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment