Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. describe('TogglableButton', () => {
  2. it('should render button in disabled state', () => {
  3. const togglableComponent = shallow(<TogglableButton/>);
  4. const button = togglableComponent.find('button');
  5.  
  6. button.simulate('click');
  7.  
  8. expect(togglableComponent.state().disabled).toBeFalsy();
  9. });
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement