toolbarHeader.spec.jsx 472 B

123456789101112131415161718192021222324
  1. import React from 'react';
  2. import {shallow} from 'enzyme';
  3. import ToolbarHeader from 'app/components/toolbarHeader';
  4. describe('ToolbarHeader', function() {
  5. let sandbox;
  6. beforeEach(function() {
  7. sandbox = sinon.sandbox.create();
  8. });
  9. afterEach(function() {
  10. sandbox.restore();
  11. });
  12. it('renders', function() {
  13. let wrapper = shallow(
  14. <ToolbarHeader>
  15. <div />
  16. </ToolbarHeader>
  17. );
  18. expect(wrapper).toMatchSnapshot();
  19. });
  20. });