Skip to content

Instantly share code, notes, and snippets.

@jasongaare
Created May 24, 2017 18:58
Show Gist options
  • Save jasongaare/c7bc166983b2542459a8df67855692df to your computer and use it in GitHub Desktop.
Save jasongaare/c7bc166983b2542459a8df67855692df to your computer and use it in GitHub Desktop.
import React from 'react';
import { shallow } from 'enzyme';
import { ReassignLocationMenu } from 'components/menu/ReassignLocationMenu';
describe('Testing ReassignLocationMenu component', () => {
it('renders as expected', () => {
const wrapper = shallow(
<ReassignLocationMenu count={2} />
);
expect(wrapper).toMatchSnapshot();
wrapper.setProps({ count: 1 });
expect(wrapper).toMatchSnapshot();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment