Guest User

Untitled

a guest
Dec 7th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import React from 'react';
  2. import { shallow } from 'enzyme';
  3. import Logs from '../Logs';
  4.  
  5. describe('Logs', () => {
  6. const logs = shallow(<Logs />);
  7.  
  8. it('renders properly', () => {
  9. expect(logs).toMatchSnapshot();
  10. });
  11.  
  12. it('downloads logs', () => {
  13. logs.find('#dwl-button').simulate('click');
  14.  
  15. expect(logs.state().isDownloading).toEqual(true);
  16. });
  17. }
Add Comment
Please, Sign In to add comment