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