eventsTable.spec.jsx 613 B

12345678910111213141516171819202122232425262728
  1. import React from 'react';
  2. import {shallow} from 'enzyme';
  3. import EventsTable from 'app/components/eventsTable/eventsTable';
  4. import events from '../../../mocks/events';
  5. describe('EventsTable', function() {
  6. let sandbox;
  7. beforeEach(function() {
  8. sandbox = sinon.sandbox.create();
  9. });
  10. afterEach(function() {
  11. sandbox.restore();
  12. });
  13. it('renders', function() {
  14. let wrapper = shallow(
  15. <EventsTable
  16. tagList={[]}
  17. params={{orgId: 'orgId', projectId: 'projectId', groupId: 'groupId'}}
  18. events={events}
  19. />
  20. );
  21. expect(wrapper).toMatchSnapshot();
  22. });
  23. });