SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. it('should render toggle enabled when toggle button is clicked', () => {
  2.     const home = shallow(<Home/>);
  3.     const togglableButton = home.find(TogglableButton);
  4.  
  5.     togglableButton.simulate('toggle', false);
  6.  
  7.     expect((home.find('#toggle').at(0).text())).toEqual('ToggleEnabled');
  8.  });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top