import * as React from 'react';
import { BrowserRouter } from 'react-router-dom';
import * as Renderer from 'react-test-renderer';

import { EventManagePage } from './component';

/* tslint:disable:no-any */
jest.mock('react-dom', () => ({
    createPortal: (node: any) => node,
}));

it('renders', () => {
  expect(Renderer.create(
    <React.Fragment>
      <BrowserRouter>
        <EventManagePage/>
      </BrowserRouter>
    </React.Fragment>,
  )).toMatchSnapshot();
});
/* tslint:enable:no-any */
