Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import { shallow } from 'enzyme';
- import Logs from '../Logs';
- describe('Logs', () => {
- const logs = shallow(<Logs />);
- it('renders properly', () => {
- expect(logs).toMatchSnapshot();
- });
- it('downloads logs', () => {
- logs.find('#dwl-button').simulate('click');
- expect(logs.state().isDownloading).toEqual(true);
- });
- }
Add Comment
Please, Sign In to add comment