toolbar.spec.jsx 442 B

123456789101112131415161718192021222324
  1. import React from 'react';
  2. import {shallow} from 'enzyme';
  3. import Toolbar from 'app/components/toolbar';
  4. describe('Toolbar', 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. <Toolbar>
  15. <div />
  16. </Toolbar>
  17. );
  18. expect(wrapper).toMatchSnapshot();
  19. });
  20. });