Created
May 24, 2017 18:58
-
-
Save jasongaare/c7bc166983b2542459a8df67855692df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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