Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('TogglableButton', () => {
- it('should render button in disabled state', () => {
- const togglableComponent = shallow(<TogglableButton/>);
- const button = togglableComponent.find('button');
- button.simulate('click');
- expect(togglableComponent.state().disabled).toBeFalsy();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement