12345678910111213141516171819202122232425262728 |
- import React from 'react';
- import {shallow} from 'enzyme';
- import EventsTable from 'app/components/eventsTable/eventsTable';
- import events from '../../../mocks/events';
- describe('EventsTable', function() {
- let sandbox;
- beforeEach(function() {
- sandbox = sinon.sandbox.create();
- });
- afterEach(function() {
- sandbox.restore();
- });
- it('renders', function() {
- let wrapper = shallow(
- <EventsTable
- tagList={[]}
- params={{orgId: 'orgId', projectId: 'projectId', groupId: 'groupId'}}
- events={events}
- />
- );
- expect(wrapper).toMatchSnapshot();
- });
- });
|