daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top